Chain queryset filters to avoid strange query generation syntax bug
This commit is contained in:
parent
aa691e7d2e
commit
e9c325b41f
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@ class EntriesView(generic.ListView):
|
|||
return Entry.objects.none()
|
||||
qs = Entry.objects.filter(
|
||||
source=src,
|
||||
created__year=dt.year,
|
||||
created__year=dt.year
|
||||
).filter(
|
||||
created__month=dt.month,
|
||||
).filter(
|
||||
created__day=dt.day
|
||||
)
|
||||
if not is_staff:
|
||||
|
|
Loading…
Reference in a new issue