You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a queryset returns model.objects.none() the code breaks when trying to do str(object_list.query) and raises django.core.exceptions.EmptyResultSet
This is a use case that seems pretty popular. For example, I have a page that I don't want to display any records until the user applies a filter. I can't do that though because of this breakage.
Thanks!
The text was updated successfully, but these errors were encountered:
If a queryset returns
model.objects.none()
the code breaks when trying to dostr(object_list.query)
and raisesdjango.core.exceptions.EmptyResultSet
This is a use case that seems pretty popular. For example, I have a page that I don't want to display any records until the user applies a filter. I can't do that though because of this breakage.
Thanks!
The text was updated successfully, but these errors were encountered: