Skip to content

Commit

Permalink
Merge pull request learningequality#3213 from learningequality/deepso…
Browse files Browse the repository at this point in the history
…urce-fix-f445bf4c

Remove `return` from `__init__()` method
  • Loading branch information
rtibbles authored Jul 6, 2021
2 parents eea6ba2 + 9a7088d commit a7e660d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion contentcuration/contentcuration/utils/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, object_list, *args, **kwargs):
raise TypeError("ValuesViewsetPaginator is only intended for use with Querysets")
self.queryset = object_list
object_list = object_list.values_list("pk", flat=True).distinct()
return super(ValuesViewsetPaginator, self).__init__(object_list, *args, **kwargs)
super(ValuesViewsetPaginator, self).__init__(object_list, *args, **kwargs)

def _get_page(self, object_list, *args, **kwargs):
pks = list(object_list)
Expand Down
1 change: 0 additions & 1 deletion contentcuration/contentcuration/viewsets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ def __init__(self, *args, **kwargs):
if not isinstance(self.field_map, dict):
raise TypeError("field_map must be defined as a dict")
self._field_map = self.field_map.copy()
return viewset

@classmethod
def id_attr(cls):
Expand Down

0 comments on commit a7e660d

Please sign in to comment.