From: yomguy Date: Fri, 6 Apr 2012 08:19:48 +0000 (+0200) Subject: collections first X-Git-Tag: 1.4.3-2~27 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=57833ebdb29c4ce9300a456692f17385af2139e4;p=telemeta.git collections first --- diff --git a/telemeta/views/base.py b/telemeta/views/base.py index 28bfe7cf..d2a8771c 100644 --- a/telemeta/views/base.py +++ b/telemeta/views/base.py @@ -387,10 +387,10 @@ class GeneralView(object): search.save() if type is None: - if items.count(): - type = 'items' - else: + if collections.count(): type = 'collections' + else: + type = 'items' if type == 'items': objects = items