Skip to content

Instantly share code, notes, and snippets.

@tylerharper
Last active December 20, 2015 19:48
Show Gist options
  • Save tylerharper/6185411 to your computer and use it in GitHub Desktop.
Save tylerharper/6185411 to your computer and use it in GitHub Desktop.
django serializer save issue
Django Serializer does not update many 2 many tables nicely with the using paramenter passed into its save. The object itself use the using database, but the many to many objects will not be saved using the using database. Instead it uses some other database.
How does it get that other database?
django/core/serializers/base.py:167:
django/db/models/fields/releated.py:824:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment