X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fregistrationview.py;h=b996e95a5c73b4a5ee24f2ec110de4896347c7cc;hb=a01625f2f3b73344306eced21c2d6605a2c6a3d9;hp=4e3b04058b830779586bb3a03148e0fb6f9907ef;hpb=dcb5961dffafd4a24a212decaf47548865e02f48;p=myslice.git diff --git a/portal/registrationview.py b/portal/registrationview.py index 4e3b0405..b996e95a 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -37,7 +37,7 @@ class RegistrationView (FreeAccessView, ThemeView): """ """ errors = [] - + authority_hrn = None authorities_query = Query.get('authority').select('name', 'authority_hrn') authorities = execute_admin_query(wsgi_request, authorities_query) if authorities is not None: @@ -62,7 +62,7 @@ class RegistrationView (FreeAccessView, ThemeView): authority_hrn = authority['authority_hrn'] # Handle the case when the template uses only hrn and not name - if not authority_hrn: + if authority_hrn is None: authority_hrn = wsgi_request.POST.get('org_name', '') post_email = wsgi_request.POST.get('email','').lower()