Skip to content

Commit

Permalink
Fix bug in manager filter method
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed Feb 19, 2018
1 parent 269ba31 commit 446063e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reobject/models/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ def earliest(self, field_name: str = 'created') -> object:

return self.all().earliest(field_name)

def exclude(self, **kwargs):
return self.all().exclude(**kwargs)
def exclude(self, *args, **kwargs):
return self.all().exclude(*args, **kwargs)

def filter(self, **kwargs):
return self.all().filter(**kwargs)
def filter(self, *args, **kwargs):
return self.all().filter(*args, **kwargs)

def first(self) -> object:
"""
Expand Down

0 comments on commit 446063e

Please sign in to comment.