if statement when model entry is empty in html django code example Example: django check if model field is empty Frame.objects.filter(asset_id__isnull=True)