Answer the question
In order to leave comments, you need to log in
How to create an instance of the model correctly when confirming User-a's email?
Hello.
Made the profile a separate model (not User)
Now an instance of the Profile model is created the first time the profile address is accessed.
But in a good way, you need to do this at the time of confirming the user's email.
Where is the best place to place the code (instance creation + writing to the database there)?
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question