Changes between Initial Version and Version 1 of Ticket #33427


Ignore:
Timestamp:
Jan 10, 2022, 10:11:56 AM (3 years ago)
Author:
Mohit Solanki
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33427 – Description

    initial v1  
    33existing data then loading the fixture can be problematic as all the existing rows with the same primary key will be updated
    44with the new data from the fixture(s)
    5 It would be a good idea to have an additional flag that for e.g `--insert-only` or something that tells django not to override existing objects with the same primary key.
     5It 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.
    66
    77Note: 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
Back to Top