dakrauth / django-swingtime

📆 Event and occurrence scheduling application for Django
https://dakrauth.github.io/django-swingtime/
MIT License
313 stars 99 forks source link

Provided queryset for views gets ignored if empty #15

Closed Fortschritt closed 8 years ago

Fortschritt commented 8 years ago

month_view() and year_view() allow for overwriting the queryset with a custom provided one. But if the provided queryset was empty it resolved to false, thus ignoring a valid, but empty, queryset. Now the condition is more explicit, preventing this behavior.

dakrauth commented 8 years ago

Thanks!