django queryset if exists code example Example: django filter exsist if table.objects.filter(prop='value').count() > 0: