Faulty logic with queued queryset.
This commit is contained in:
parent
427c06fb35
commit
269e2e30a8
1 changed files with 1 additions and 2 deletions
|
@ -16,8 +16,7 @@ class RequestManager(models.Manager):
|
||||||
return self.get_queryset().filter(queued_at__isnull=True)
|
return self.get_queryset().filter(queued_at__isnull=True)
|
||||||
|
|
||||||
def queued(self):
|
def queued(self):
|
||||||
return self.get_queryset().filter(models.Q(queued_at__isnull=False) &
|
return self.get_queryset().filter(queued_at__isnull=False)
|
||||||
models.Q(played_at__isnull=True))
|
|
||||||
|
|
||||||
def new_requests(self):
|
def new_requests(self):
|
||||||
return self.get_queryset().filter(models.Q(queued_at__isnull=True) &
|
return self.get_queryset().filter(models.Q(queued_at__isnull=True) &
|
||||||
|
|
Loading…
Reference in a new issue