platform: django 1.0, google app engine, app-engine-patch , python 2.5.4
i am tring to use the choices attribute as i always have been using in django website
STATUS_CHOICES = ( (1, _('Yet To Start')), (2, _('Running')), (3, _('Paused')), (4, _('Completed')), (5, _('Cancelled')), (6, _('Error')),)
class Campaign(db.Model): name = db.TextProperty() status = db.IntegerProperty(choices=STATUS_CHOICES,default=2)
now as i have moved to app-engine i dont see this is working...
i am getting a
BadValueError
Property status is 3; must be one of ((1, u'Yet To Start'), (2, u'Running'), (3, u'Paused'), (4, u'Completed'), (5, u'Cancelled'), (6, u'Error'))
how shud i go about this problem?