After a recent migration from Oracle to Postgres and upgrading from Django 1.2 to 1.3, we had problems saving objects to our database. When the save () function is called, no id is returned, this happens even when standard django auth models are saved through the standard django admin panel (returns '/ admin / auth / user / None /' even if the user was added to db and had an identifier) .
All our other sites that run the same db do not have this problem, however they run Django 1.1 or 1.2.
We found that for new tables created after migration, their sequence had an βbelongsβ attribute that belonged to the column in which this sequence was included (usually this is an identifier column). Changing the "belonged" attribute fixed the problems that we had in version 1.3.
Does anyone know what is the reason behind this? We found a solution if anyone else has this problem, but we would like to know what caused it.
django postgresql
Iain shelvington
source share