2012-10-04 18 views

答えて

33
status = models.CharField(max_length=2, null=True, choices=STATUSES, default='E') 

または変更をステータス場合は、無効なデフォルトを設定しないようにするには:

status = models.CharField(max_length=2, null=True, choices=STATUSES, default=STATUSES[0][0]) 
関連する問題