a possible solution to solve this problem is to add a django signal, that'l update the Bag pk sequence to the max value of bag id. So, after every import the Bag pk sequence will be updated.
Another way to solve this is, to modify the import command itself to update all the PK sequences together at the end of execution, to the max values of their pk column values.
Not sure, which approach is appropriate and clean.
a possible solution to solve this problem is to add a django signal, that'l update the Bag pk sequence to the max value of bag id. So, after every import the Bag pk sequence will be updated. Another way to solve this is, to modify the import command itself to update all the PK sequences together at the end of execution, to the max values of their pk column values. Not sure, which approach is appropriate and clean.