id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 6960 PositiveSmallInteger comes with unicode value from admin kmmbvnr@… nobody "If i save this model from admin, the type_x field comes as unicode. When getting existing instances, the type_x field have int type. {{{ Choices = ( (1,u'a'), (2,u'b') ) class Test(models.Model): type_x = models.PositiveSmallIntegerField(choices=Choices,default=1) def save(self): assert isinstance(self.type_x, int) super(Test,self).save(self) class Admin: pass }}} " closed contrib.admin dev fixed type error nfa-fixed Fixed on a branch 0 0 0 0 0 0