You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously it required a filter_class,
or else it would error when calling `cls()`.
This now sets the `filter` context to `None`
if one does not exist.
Fixesencode#3559
The
to_html
function doesn't check if thecls
exists in this line:https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/filters.py#L121
It should have logic checking for a
None
, similar to the above bit:https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/filters.py#L112-L114
Causes this error when viewing those pages:
'NoneType' object is not callable
The text was updated successfully, but these errors were encountered: