opdemand/deis — pull request #631 by bacongobbler (2014-03-14 07:27:56+00:00)
Title: set min username length to 4

fixes #517. Includes tests to ensure that it works as intended. I had to fix up some of the `auth_perms` tests as well, because they were using usernames that were 3 characters in length.

The reason why I did not go with extending Django's User model is that there are a lot of components that are still experimenting with integrating Django v1.5's User model extension, including `South` and `django-allauth`. `django-guardian` only just released a new version that supports that new workflow. Some more thought will have to go into that, but for now this solves our issue.

```
><> deis register http://deis-controller.local:8000
username: uno
password:
password (confirm):
email: uno@uno.com
Registration failed {"detail": "username must be > 4 characters in length"}
```