﻿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
25012	Migration doesn't seem to detect foreignKey type changes	Hedde van der Heide	nobody	"Example:

{{{
    #!div style=""font-size: 80%""
    {{{#!python
    class Foo(models.Model):
        id = models.AutoField()  # Now change this to models.CharField(primary_key=True, max_length=...) and migrate, the migration doesn't complain    

    class Bar(object):
        foo = models.ForeignKey(Foo)  # but Postgres will still say Bar.foo is an Integer value.
    }}}
}}}

DataError at /myapp/bar/add/
invalid input syntax for integer: ""TEST""
LINE 1: ...d"") VALUES (NULL, 'TEST', ..."	Uncategorized	new	Uncategorized	1.8	Normal		postgres, migrations		Unreviewed	0	0	0	0	0	0
