First I created a CharField:
('currency', models.CharField(max_length=30)),
In a later migration I changed it to a foreign key field:
field=models.ForeignKey(to='web.Currency'),
It worked on a local MySql instance, but not on Postgres on Heroku:
django.db.utils.ProgrammingError: column "cur
rency column.
> Then add the new column, make migrations and apply.
>
> On Fri, Feb 20, 2015 at 2:30 PM, Martin Kapfhammer > wrote:
>
>> First I created a CharField:
>> ('currency', models.CharField(max_length=30)),
>>
>> In a later migration I
Alright, so I uncommented the creation of the CharField and changed the
AlterField to an AddField operation. Worked! :)
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
3 matches
Mail list logo