remove generalize addition
This commit is contained in:
parent
1ea7e36a6c
commit
83e1a44d5a
|
|
@ -53,14 +53,6 @@ class PathScopedMixin:
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialization routine for the serializer."""
|
||||
# add list_serializer_class to meta if not present
|
||||
if (
|
||||
not isinstance(self, FilterableListSerializer)
|
||||
and (not hasattr(self.Meta, 'list_serializer_class'))
|
||||
and issubclass(self.__class__, serializers.ListSerializer)
|
||||
):
|
||||
self.Meta.list_serializer_class = FilterableListSerializer
|
||||
|
||||
self.gather_filters(kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.do_filtering(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue