register form

Hey everyone, I am trying to create a registration form using the default user table that the framework provides. The problem is that the user table doesn’t have a phone field I need in my registration form. I tried to add the column to the table in DB, but then I couldn’t save data in that column because it is not part of the model “User” defined by Django. Can I modify the model?

Thanks!

There are two general ways to add additional information to your User object. It’s all well-documented within the Django documentation, Extending the existing User model and Substituting a custom User model.

If all you want to do is add a phone field (or other additional fields) then I would recommend the first method of creating a profile model associated with the User model.

Ken

1 Like