gwu-libraries / inventory_old

A system for tracking location of digital items and progress in reformatting projects
MIT License
5 stars 1 forks source link

Review updating Bag pk sequence after importing data into Inventory #199

Closed darshanrp closed 10 years ago

darshanrp commented 10 years ago

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.