Usernames in Django are limited to max_length=30
, and since Django 1.5+ they can also be set by using USERNAME_FIELD
.
However, it isn't clear how the existing username
field can be kept intact (with all the functionality it has) while only changing max_length
. I assume some sort of monkey patching is required, but it isn't immediate what the right way to do so is.
This question is not a duplicate of existing questions that refer to versions prior to 1.5, rather it asks about a very specific monkey patch that isn't currently addressed in any other question on SO.