1

Current Django username length limit is 30 characters.

My Profile model looks like this:

from django.contrib.auth.models import User

class UserProfile(models.Model):
    user = models.OneToOneField(User)
    organization = models.ForeignKey(Organization)
....

Is there are any not so ugly solution as this What is the 'right' way to extend the username field length in Django 1.5+?

P.S. It is already deployed and there are hundreds of users. I can't just implement my own user class based on abstract user. I need some "hack". Currently I changed value directly in Django for my local clone, but is is even more ugly, that monkey patching.

Community
  • 1
  • 1
SkyFox
  • 1,805
  • 4
  • 22
  • 33

0 Answers0