Chain queryset filters to avoid strange query generation syntax bug

This commit is contained in:
Rodolphe Breard 2018-06-02 14:29:46 +02:00
parent aa691e7d2e
commit e9c325b41f

View file

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