Changes between Initial Version and Version 1 of Ticket #19544, comment 15


Ignore:
Timestamp:
Jun 23, 2016, 5:52:56 AM (8 years ago)
Author:
Thomas Güttler

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19544, comment 15

    initial v1  
    11This StackO question tries to find a work around: http://stackoverflow.com/questions/37654072/django-integrityerror-during-many-to-many-add/37968648
     2
     3AFAIK the same issue existed for get_or_create() until some last version of django. See https://github.com/django/django/commit/1b331f6c1e
     4
     5This work around might be a good starting point for a fix:
     6{{{
     7
     8article.publications.through.objects.get_or_create(
     9            article=article, publication=pub)
     10}}}
Back to Top