﻿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
5204	Inline adding of FK-related model on oldforms admin broken after [5933]	Ramiro Morales	Adrian Holovaty	"I saw #5102 and [5933] and it made me remember the #2160, [4459], #3447, [4463] saga so I tested the  case described in #3447 again and it seems the history somewhat repeats itself.

The sequence to generate the error is:

 1. Create a Case
 2. Edit that case and spcify a relate Label in the inline section of the edit form
 3. Pressing the `Save` button generates:

{{{
Traceback (most recent call last):
File ""/home/ramiro/src/django/trunk/django/contrib/admin/views/decorators.py"" in _checklogin
  55. return view_func(request, *args, **kwargs)
File ""/home/ramiro/src/django/trunk/django/contrib/admin/views/main.py"" in change_stage
  336. new_object = manipulator.save(new_data)
File ""/home/ramiro/src/django/trunk/django/db/models/manipulators.py"" in save
  202. new_rel_obj.save()
File ""/home/ramiro/src/django/trunk/django/db/models/base.py"" in save
  247. ','.join(placeholders)), db_values)
File ""/home/ramiro/src/django/trunk/django/db/backends/util.py"" in execute
  19. return self.cursor.execute(sql, params)
File ""/home/ramiro/src/django/trunk/django/db/backends/sqlite3/base.py"" in execute
  94. return Database.Cursor.execute(self, query, params)

  IntegrityError at /admin/t3447/case/1/
  datatype mismatch
}}}

when using r5933 but works when using r5932.

Using sqlite3 db backend, sqlite 3.3.8, Python 2.4.4.
"		closed	Database layer (models, ORM)	dev		fixed			Unreviewed	0	0	0	0	0	0
