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.
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.