X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fviews.py;h=65d8ea0523d20ff67d589793ad214f061a7009d3;hb=83f3bc8abee6f1312ad9a0a24e63871fc1ee8b16;hp=997dbfb06148e9d828864f596cf39f098dd14b22;hpb=d3c4599bc7e78f9b01ebac0c39d919bf5a731212;p=unfold.git diff --git a/portal/views.py b/portal/views.py index 997dbfb0..65d8ea05 100644 --- a/portal/views.py +++ b/portal/views.py @@ -302,7 +302,7 @@ class ValidatePendingView(TemplateView): # ** Where am I a PI ** # For this we need to ask SFA (of all authorities) = PI function - pi_authorities_query = Query.get('user').filter_by('user_hrn', '==', '$user_hrn').select('pi_authorities') + pi_authorities_query = Query.get('ple:user').filter_by('user_hrn', '==', '$user_hrn').select('pi_authorities') pi_authorities_tmp = execute_query(self.request, pi_authorities_query) pi_authorities = set() for pa in pi_authorities_tmp: @@ -375,7 +375,7 @@ class ValidatePendingView(TemplateView): # more general variables expected in the template context['title'] = 'Test view that combines various plugins' # the menu items on the top - context['topmenu_items'] = topmenu_items('Dashboard', self.request) + context['topmenu_items'] = topmenu_items('Validation', self.request) # so we can sho who is logged context['username'] = the_user(self.request)