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()
|
return Entry.objects.none()
|
||||||
qs = Entry.objects.filter(
|
qs = Entry.objects.filter(
|
||||||
source=src,
|
source=src,
|
||||||
created__year=dt.year,
|
created__year=dt.year
|
||||||
|
).filter(
|
||||||
created__month=dt.month,
|
created__month=dt.month,
|
||||||
|
).filter(
|
||||||
created__day=dt.day
|
created__day=dt.day
|
||||||
)
|
)
|
||||||
if not is_staff:
|
if not is_staff:
|
||||||
|
|
Loading…
Reference in a new issue