﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12883	"Adding values in a m2m field breaks (_state.db is None instead of ""default"")"	Ionel Cristian Maries	nobody	"{{{
Traceback (most recent call last):
  File ""x.py"", line 123, in process_release
    bla.somem2mfield.add(foo)
  File ""/home/snip/ve/src/django/django/db/models/fields/related.py"", line 465, in add
    self._add_items(self.source_field_name, self.target_field_name, *objs)
  File ""/home/snip/ve/src/django/django/db/models/fields/related.py"", line 525, in _add_items
    (obj, self.instance._state.db, obj._state.db))
ValueError: Cannot add ""<Foo: Foo object>"": instance is on database ""None"", value is is on database ""default""
}}}

I don't understand why this happens. I don't have any explicit ""using"" anywhere in my code.
"		closed	Database layer (models, ORM)	dev		duplicate			Unreviewed	0	0	0	0	0	0
