]> git.parisson.com Git - telemeta.git/commitdiff
fix again
authoryomguy <yomguy@parisson.com>
Tue, 1 May 2012 19:37:41 +0000 (21:37 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 1 May 2012 19:37:41 +0000 (21:37 +0200)
telemeta/views/base.py

index 3f8a743e13834a135604c0b461941d59d3f46024..14418efddd21a12a5ebbb9949b45e20d63bdf83c 100644 (file)
@@ -256,7 +256,7 @@ class GeneralView(object):
         rec_years = year_min and year_max and range(year_min, year_max + 1) or []
         year_min, year_max = MediaCollection.objects.all().publishing_year_range()
         pub_years = year_min and year_max and range(year_min, year_max + 1) or []
-        if request.user:
+        if request.user.is_authenticated:
             searches = Search.objects.filter(username=request.user)
         else:
             searches = []