From: yomguy Date: Tue, 1 May 2012 19:48:16 +0000 (+0200) Subject: re fix X-Git-Tag: 1.4.3-2~7^2^2~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cda71a1951bb52cf1ec9d78dc5ab43b97b9ac704;p=telemeta.git re fix --- diff --git a/telemeta/views/base.py b/telemeta/views/base.py index 14418efd..6f53da96 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.is_authenticated: + if request.user.is_authenticated(): searches = Search.objects.filter(username=request.user) else: searches = []