class Mymodel models Model SOME ANOTHER CHOICES SOME something ANOTHER

1
2
3
4
5
6
7
8
class Mymodel(models.Model):
SOME = 1
ANOTHER = 2
CHOICES = (
(SOME, 'something'),
(ANOTHER, 'anotherthing'))
qwe = models.IntegerField(choices=CHOICES)