Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed May 11, 2022
1 parent 966d7b3 commit ad19461
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/collections/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,7 @@ def to_ref_list_separated(cls, references):
refs = cls.to_ref_list(references)
if isinstance(refs, QuerySet):
return refs.filter(include=True), refs.exclude(include=True)
else:
return [ref for ref in refs if ref.include], [ref for ref in refs if not ref.include]
return [ref for ref in refs if ref.include], [ref for ref in refs if not ref.include]

def delete_references(self, references):
refs, _ = self.to_ref_list_separated(references)
Expand Down

0 comments on commit ad19461

Please sign in to comment.