Skip to navigation
How to add a new column to the table auth_user what get overwritten by module email_auth.User
27.05.17
if you have like overwrite in your settings: AUTH_USER_MODEL = 'email_auth.User' from email_auth.models import User #create new: customer_id = models.IntegerField(default=0,blank=True) customer_id.contribute_to_class(User, 'customer_id') #to change existing: User._meta.get_field("first_name").max_length = 50 User._meta.get_field("last_name").max_length = 100 User._meta.get_field("username").max_length = 50 User._meta.get_field("email")._unique = True
https://djangosnippets.org/snippets/2132/
Reply
Anonymous
Information Epoch 1732650996
Make every program a filter.
Home
Notebook
Contact us