From d4bec655ae1c1122d7aea4bf8e58cc8a2b7bcc74 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 13 Nov 2014 10:07:44 +0100 Subject: [PATCH] [1.7.x] Fixed flake8 warning. Backport of dec7da3c4c from master --- tests/model_forms/tests.py | 1 + 1 file changed, 1 insertion(+) 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