Redefine new_requests.
This commit is contained in:
parent
8badc08818
commit
427c06fb35
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ class RequestManager(models.Manager):
|
||||||
models.Q(played_at__isnull=True))
|
models.Q(played_at__isnull=True))
|
||||||
|
|
||||||
def new_requests(self):
|
def new_requests(self):
|
||||||
return self.unplayed().not_queued()
|
return self.get_queryset().filter(models.Q(queued_at__isnull=True) &
|
||||||
|
models.Q(played_at__isnull=True))
|
||||||
|
|
||||||
def get_played_requests(self, limit=None):
|
def get_played_requests(self, limit=None):
|
||||||
if limit:
|
if limit:
|
||||||
|
|
Loading…
Reference in a new issue