2012-10-04 11 views

Odpowiedz

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

lub w celu uniknięcia ustawienie domyślne nieprawidłowy jeśli statusy zmian:

status = models.CharField(max_length=2, null=True, choices=STATUSES, default=STATUSES[0][0]) 
Powiązane problemy