how to check if field is empty in if and else django code example Example: django check if model field is empty Frame.objects.filter(asset_id__isnull=True)