Organization is mandatory, empty string not valid
[unfold.git] / portal / registrationview.py
index 05e0207..c631b23 100644 (file)
@@ -89,7 +89,7 @@ class RegistrationView (FreeAccessView, ThemeView):
 
             print "############ BREAKPOINT 4 #################"
             auth = wsgi_request.POST.get('org_name', None)
-            if auth is None:
+            if auth is None or auth == "":
                 errors.append('Organization required: please select one or request its addition')
             else: