S
S
Sergey Nizhny Novgorod2016-07-13 06:50:48
Django
Sergey Nizhny Novgorod, 2016-07-13 06:50:48

How to automatically create extending models for the User model?

Hello.
Extended the User model by binding a one-to-one Profile model to it.
Registration made through built-in-forms registration.
It is necessary that when registering a user, an empty Profile model is created, bound to the User model. Now this model is not created during registration.
Can you suggest how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IvanOne, 2016-07-13
@Terras

The easiest option is to write your own user creation method and link the profile in it. This method is here https://docs.djangoproject.com/es/1.9/ref/contrib/...
The second option is to make changes to the standard user registration processing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question