Ch Zeeshan
Ch Zeeshan

Reputation: 1644

Database Error at /myapp/

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

Answers (1)

bruno desthuilliers
bruno desthuilliers

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

Related Questions