I have a model Training
which contains many objects of model Lesson
.
There is foreign key relationship between Lesson
and Training
- Training
object can have many Lesson
objects.
I want to pre-create 2 default Training
objects: Recycle Bin
(to hold “deleted” Lesson
objects) and Drafts
(to hold Lesson
objects which are not yet associated with specific Training
).
What is the best practice way to pre-create default model objects in database ?