From: Loic Baron Date: Sat, 25 Apr 2015 08:42:10 +0000 (+0200) Subject: Request slice authority_hrn only, no names, fixed for fed4fire X-Git-Tag: myslice-1.3~9 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5832ecf48744f820a3e574f2014411d7992ff6de;p=unfold.git Request slice authority_hrn only, no names, fixed for fed4fire --- diff --git a/portal/slicerequestview.py b/portal/slicerequestview.py index 70ef4b72..c7102dc7 100644 --- a/portal/slicerequestview.py +++ b/portal/slicerequestview.py @@ -111,11 +111,12 @@ class SliceRequestView (LoginRequiredAutoLogoutView, ThemeView): # get the domain url current_site = Site.objects.get_current() current_site = current_site.domain - - # getting the authority_hrn from the selected organization - for authority in authorities: - if authority['name'] == request.POST.get('org_name', ''): - authority_hrn = authority['authority_hrn'] + + if theme.theme != 'fed4fire': + # getting the authority_hrn from the selected organization + for authority in authorities: + if authority['name'] == request.POST.get('org_name', ''): + authority_hrn = authority['authority_hrn'] # Handle the case when we use only hrn and not name if authority_hrn is None: