google-code-export / django-photologue

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

initial_data error #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. new install photologue
2. ./manage.py syncdb
3.

What is the expected output? What do you see instead?
Installing xml fixture 'initial_data' from
'/home/remik/django/django_projects/dgallery/photologue/fixtures'.
Problem installing fixture
'/home/remik/django/django_projects/dgallery/photologue/fixtures/initial_data.xm
l':
(1452, 'Cannot add or update a child row: a foreign key constraint fails
(`remik_gallery/photologue_photosize`, CONSTRAINT
`effect_id_refs_id_73980e0b` FOREIGN KEY (`effect_id`) REFERENCES
`photologue_photoeffect` (`id`))')

What version of the product are you using? On what operating system?
1.0b

Please provide any additional information below.
photologue_photoeffect should be first install than photologue_photosize

Original issue reported on code.google.com by remigi...@gmail.com on 14 Mar 2008 at 9:03

GoogleCodeExporter commented 9 years ago
Check out the latest trunk. I updated the initial_data.xml file as I think the 
ordering of the inital_data models 
was throwing off a database that actually enforces foreign_key contraints (I've 
been testing against SQLite which 
lets pretty much anything fly). Let me know if you still have issues.

Original comment by justin.d...@gmail.com on 14 Mar 2008 at 10:02

GoogleCodeExporter commented 9 years ago
Ohh and please let me know if this fixes the issue so I can close it! :)

Original comment by justin.d...@gmail.com on 14 Mar 2008 at 10:11

GoogleCodeExporter commented 9 years ago
You fix it.

Original comment by remigi...@gmail.com on 14 Mar 2008 at 10:11

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by justin.d...@gmail.com on 14 Mar 2008 at 10:35