Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1319 | collections | updated as per pylint2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jun 7, 2022
1 parent dc69ebc commit 771207c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/collections/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ def get_serializer_context(self):
context.update({'request': self.request, INCLUDE_REFERENCES_PARAM: self.should_include_references()})
return context

@staticmethod
def get_detail_serializer(obj):
def get_detail_serializer(self, obj):
return CollectionDetailSerializer(obj)

def get_filter_params(self, default_version_to_head=True):
Expand Down Expand Up @@ -153,7 +152,6 @@ class CollectionListView(CollectionBaseView, ConceptDictionaryCreateMixin, ListW
facet_class = CollectionSearch
default_filters = dict(is_active=True, version=HEAD)

# pylint: disable=R0201
def apply_filters(self, queryset):
return queryset

Expand Down

0 comments on commit 771207c

Please sign in to comment.