[Answer]-Django – extra fields for user form

1👍

The Django idiomatic way of adding more fields to the User model is to make a second model where User is a ForeignKey. So:

from django.db import models
from django.contrib.auth.models import User

class MyUser(models.Model):
    user = models.ForeignKey(User)
    # ... other fields.  i.e. imagefield, date of birth (dob), etc ..
    # example:
    dob = models.DateField()

Leave a comment