I'm trying to create a user in my model by calling the create_user function but I want it to have properties of what the user enters into my model. How do I do this?
This is what I have:
class Person(models.Model):
#basic information
name = models.CharField(max_length=50)
email = models.CharField(max_length=50, unique=True)
phone_number = PhoneNumberField(unique=True)
# FIX THIS!
user = User.objects.create_user(name, email, phone_number)