From: yomguy Date: Tue, 1 May 2012 19:37:41 +0000 (+0200) Subject: fix again X-Git-Tag: 1.4.3-2~7^2^2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=63c54773aff27acba69424dd8ca5ebd9d73c2cb2;p=telemeta.git fix again --- diff --git a/telemeta/views/base.py b/telemeta/views/base.py index 3f8a743e..14418efd 100644 --- a/telemeta/views/base.py +++ b/telemeta/views/base.py @@ -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 = []