From: Loic Baron Date: Thu, 23 Apr 2015 12:39:31 +0000 (+0200) Subject: fix theme is defined as self.theme in the view X-Git-Tag: myslice-1.3~19 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ced87c58450ab1d6ef59d5b631c2505db80a3887;p=unfold.git fix theme is defined as self.theme in the view --- diff --git a/portal/projectrequestview.py b/portal/projectrequestview.py index 13c49606..37442f11 100644 --- a/portal/projectrequestview.py +++ b/portal/projectrequestview.py @@ -20,7 +20,7 @@ class ProjectRequestView(LoginRequiredAutoLogoutView, ThemeView): template_name = 'projectrequest_view.html' def getAuthorities(self, request): - if theme.theme == 'fed4fire': + if self.theme == 'fed4fire': authorities_query = Query.get('myslice:authority').select('name', 'authority_hrn') else: authorities_query = Query.get('authority').select('name', 'authority_hrn')