Redefine new_requests.

This commit is contained in:
Josh W 2019-11-23 22:31:11 -05:00
parent 8badc08818
commit 427c06fb35

View file

@ -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: