Skip to content
This repository has been archived by the owner on May 11, 2019. It is now read-only.

Update_content_binding and update_content_binding_subtype appear to make loaddata fail #25

Open
MarkDavidson opened this issue Oct 22, 2014 · 1 comment

Comments

@MarkDavidson
Copy link
Contributor

Currently, I'm having a hard time doing something like:
python manage.py dumpdata taxii_services > data.json
then
python manage.py loaddata data.json
because I get the following error:
Could not load taxii_services.ContentBindingSubtype(pk=1): columns content_binding_id, subtype_id are not unique

I'm thinking the root cause might be because the post_save hooks for ContentBinding and ContentBindingSubtype do not properly account for the fact that the ContentBindingAndSubtype might already exist.

@MarkDavidson
Copy link
Contributor Author

... and now I'm having trouble replicating the issue.

I'm thinking that changing the functions to use get_or_create would remediate the issue. However, I can't replicate the issue so I'm not going to fix it right now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant