Commit 8e9207b1 by yushchenko

fixes registartions fields

parent f628f56b
......@@ -90,10 +90,10 @@ class UserProfile(models.Model):
# ('p_se', 'Doctorate in science or engineering'),
# ('p_oth', 'Doctorate in another field'),
LEVEL_OF_EDUCATION_CHOICES = (
('p', _("Doctorate")),
('m', _("Master's or professional degree")),
('b', _("Bachelor's degree")),
('a', _("Associate's degree")),
('s', _("Specialist's degree")),
('hs', _("Secondary/high school")),
('jhs', _("Junior secondary/junior high/middle school")),
('el', _("Elementary/primary school")),
......
......@@ -683,7 +683,7 @@ def create_account(request, post_override=None):
return HttpResponse(json.dumps(js))
for a in required_post_vars:
if len(post_vars[a]) < 2:
if len(post_vars[a]) < 1:
error_str = {'username': _('Username must be minimum of two characters long.'),
'email': _('A properly formatted e-mail is required.'),
'name': _('Your legal name must be a minimum of two characters long.'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment