anschelburk / simple_planner

Apache License 2.0
0 stars 0 forks source link

make fixture to load in 3 lists from start #26

Open bbelderbos opened 3 months ago

bbelderbos commented 3 months ago
# add the desired 3 items in the admin, then:
$ mkdir planner/fixtures
$ python manage.py dumpdata planner.ListName > planner/fixtures/initial_lists.json

# to load them in after making a new db:
$ python manage.py loaddata initial_lists

To avoid this manual load step, we could also look at what it would take to add them to the django migration file that generated the model ...