Fix last maps returned when search was empty
This commit is contained in:
parent
6b539b9d40
commit
617d6ba9ef
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class Search(PaginatorMixin, TemplateView, PublicMapsMixin, SearchMixin):
|
|||
qs = self.get_search_queryset()
|
||||
qs_count = 0
|
||||
results = []
|
||||
if qs:
|
||||
if qs is not None:
|
||||
qs = qs.filter(share_status=Map.PUBLIC).order_by("-modified_at")
|
||||
qs_count = qs.count()
|
||||
results = self.paginate(qs)
|
||||
|
|
Loading…
Reference in a new issue