Reputation: 1644
I just include a choice field in my model
quote_template = models.CharField(_('Template'), choices=TEMPLATE, max_length=20)
and now this error is coming
DatabaseError at /quote/
current transaction is aborted, commands ignored until end of transaction block
any idea??? how to resolve this??
Upvotes: 2
Views: 191
Reputation: 77902
Adding fields to your model will not magically update the existing database schema - you either have to do it by and or use a schema-migration tool like South.
Upvotes: 4