Django unable to load test fixtures, IntegrityError
问题 I'm using Saleor/Satchless to power and e-commerce site (inherited the project). I couldn't find a Saleor mailing list so posting here instead. I dumped the DB to create some test fixtures. ./manage.py dumpdata -e contenttypes -e sessions -e south -e > payments_data.json When I run the tests and django tries to load the fixtures it barfs this up. I'm using Postgres as the DB, and although not terribly familiar, it seems like there might be a problem with the order in which data is being