dzxs / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

dumpdata->loaddata fails due to photologue auto creating tagging_taggeditems inserts when tagging is used (in PgSQL at least) #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. upload photos to photologue w/tagging installed
2. ./manage.py dumpdata > my.json
3. ./manage.py flushsql | psql
4. ./manage.py loaddata my.json

What is the expected output? What do you see instead?
Should see all my data loaded back into the database...
I get instead, a duplicate key error on tagging_taggeditem when loaddata
starts parsing the tagging.taggeditem content in the JSON file because some
of the photologue fields recreated tagging_taggeditem data on insert

What version of the product are you using? On what operating system?
v2 the latest download currently availble as of 18 Dec 2009 -- running on
PgSQL 8.4.1 and Ubuntu 9.10 with Python 2.6

Please provide any additional information below.

Original issue reported on code.google.com by ktiedt on 18 Dec 2009 at 9:14