Changes between Initial Version and Version 1 of Ticket #19544, comment 15
- Timestamp:
- Jun 23, 2016, 5:52:56 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19544, comment 15
initial v1 1 1 This StackO question tries to find a work around: http://stackoverflow.com/questions/37654072/django-integrityerror-during-many-to-many-add/37968648 2 3 AFAIK the same issue existed for get_or_create() until some last version of django. See https://github.com/django/django/commit/1b331f6c1e 4 5 This work around might be a good starting point for a fix: 6 {{{ 7 8 article.publications.through.objects.get_or_create( 9 article=article, publication=pub) 10 }}}