Skip to content

Integrity problems when using get_or_create through M2M #1164

merged 1 commit into from May 19, 2013

2 participants


As described on #18896, if we use get_or_create through M2M fields or reverse FK, we can have integrity problems. As there's no obvious solution over here, I'm adding a note into the documentation for it. I also added a couple of tests cases for checking that bug.

@pablorecio pablorecio Fixes #18896. Add tests verifying that you can get IntegrityErrors us…
…ing get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
@aaugustin aaugustin merged commit c28b795 into django:master May 19, 2013
@pablorecio pablorecio deleted the pablorecio:get_or_create_through_m2m branch May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.