Changes between Initial Version and Version 1 of Ticket #33427
- Timestamp:
- Jan 10, 2022, 10:11:56 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33427 – Description
initial v1 3 3 existing data then loading the fixture can be problematic as all the existing rows with the same primary key will be updated 4 4 with the new data from the fixture(s) 5 It would be a good idea to have an additional flag thatfor e.g `--insert-only` or something that tells django not to override existing objects with the same primary key.5 It would be a good idea to have an additional flag like for e.g `--insert-only` or something that tells django not to override existing objects with the same primary key. 6 6 7 7 Note: I created this package https://github.com/mohi7solanki/dj-snake to solve this issue but I think It would be a good idea to add this functionality to `loaddata` itself