Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Each user must have their own row in the users table and one-to-many relationships to orders.
If you do not change models.py, then there will be problems. Each order must have a ForeignKey for the user, write related_name, perform migration, Django will do the rest for you
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question