[PATCH 0/3] Fix migrations state & load initial data throuh migrations (v2)
Damien Lespiau
damien.lespiau at intel.com
Fri Aug 21 02:13:46 AEST 2015
v2 of the previous series (long explanation there):
https://lists.ozlabs.org/pipermail/patchwork/2015-August/001394.html
This time passing the tests.
I've now also noticed that Stephen fixed the same issue in a different way in:
https://lists.ozlabs.org/pipermail/patchwork/2015-July/001362.html
I like my solution slightly better, but that's debatable, of course.
--
Damien
Damien Lespiau (3):
migrations: Use a data migration to load initial states and tags
fixtures: Remove the initial project data
migrations: Add the default value of Patch.state
docs/INSTALL | 5 ---
patchwork/fixtures/default_projects.xml | 18 -----------
patchwork/migrations/0002_load_initial_data.py | 37 ++++++++++++++++++++++
.../migrations/0003_patch_state_default_value.py | 20 ++++++++++++
patchwork/models.py | 5 ++-
5 files changed, 61 insertions(+), 24 deletions(-)
delete mode 100644 patchwork/fixtures/default_projects.xml
create mode 100644 patchwork/migrations/0002_load_initial_data.py
create mode 100644 patchwork/migrations/0003_patch_state_default_value.py
--
2.1.0
More information about the Patchwork
mailing list