diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 86a027e4d4..962e5b969f 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -2383,6 +2383,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