We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132c4cb commit d2f8bf7Copy full SHA for d2f8bf7
graphene_django/filter/tests/test_fields.py
@@ -227,6 +227,21 @@ class Query(ObjectType):
227
assert_not_orderable(articles_field)
228
229
230
+def test_filter_filterset_class_filter_fields_exception():
231
+ with pytest.raises(Exception):
232
+ class ReporterFilter(FilterSet):
233
+ class Meta:
234
+ model = Reporter
235
+ fields = ["first_name", "articles"]
236
+
237
+ class ReporterFilterNode(DjangoObjectType):
238
239
240
+ interfaces = (Node,)
241
+ filterset_class = ReporterFilter
242
+ filter_fields = ["first_name", "articles"]
243
244
245
def test_filter_filterset_class_information_on_meta():
246
class ReporterFilter(FilterSet):
247
class Meta:
0 commit comments