Tell user that spaces aren't allowed in usernames (requested by Teppo).

This commit is contained in:
David Ormsbee
2013-03-04 11:17:29 -05:00
parent 9b1ae9f99c
commit a00f11c1ff

View File

@@ -554,7 +554,7 @@ def create_account(request, post_override=None):
try:
validate_slug(post_vars['username'])
except ValidationError:
js['value'] = "Username should only consist of A-Z and 0-9.".format(field=a)
js['value'] = "Username should only consist of A-Z and 0-9, with no spaces.".format(field=a)
js['field'] = 'username'
return HttpResponse(json.dumps(js))