fix theme is defined as self.theme in the view
authorLoic Baron <loic.baron@lip6.fr>
Thu, 23 Apr 2015 12:39:31 +0000 (14:39 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Thu, 23 Apr 2015 12:39:31 +0000 (14:39 +0200)
portal/projectrequestview.py

index 13c4960..37442f1 100644 (file)
@@ -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')