File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -73,18 +73,8 @@ def get_filterset(self, filterset_class):
73
73
return filterset_class (** kwargs )
74
74
75
75
def get_filterset_kwargs (self , filterset_class ):
76
- kwargs = {'data' : self .args or None }
77
- try :
78
- kwargs .update ({
79
- 'queryset' : self .get_manager (),
80
- })
81
- except ImproperlyConfigured :
82
- # ignore the error here if the filterset has a model defined
83
- # to acquire a queryset from
84
- if filterset_class ._meta .model is None :
85
- msg = ("'%s' does not define a 'model' and the resolver '%s' "
86
- "does not return a valid queryset from 'get_queryset'. "
87
- "You must fix one of them." )
88
- args = (filterset_class .__name__ , self .__class__ .__name__ )
89
- raise ImproperlyConfigured (msg % args )
76
+ kwargs = {
77
+ 'data' : self .args or None ,
78
+ 'queryset' : self .get_manager ()
79
+ }
90
80
return kwargs
You can’t perform that action at this time.
0 commit comments