You could add a second model that relates with OneToOneField
to User. This is best described in the very nice tutorial from Vitor Freitas (here, "Extending User Model Using a One-To-One Link").
Key essence:
from django.db import models
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
phone= models.CharField(max_length=20, blank=True)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…