diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 2b342db744..489137bd35 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -2351,6 +2351,7 @@ class CustomFieldWithQuerysetButNoLimitChoicesTo(forms.Field): class StumpJokeWithCustomFieldForm(forms.ModelForm): custom = CustomFieldWithQuerysetButNoLimitChoicesTo() + class Meta: model = StumpJoke fields = () # We don't need any fields from the model