class Sections models Model def __init__ self var Sections objects cou

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class Sections(models.Model):
def __init__(self):
var = Sections.objects.count()
choice = []
for i in range(1,5):
choice.append((i,i))
return choice
super(Sections,self)
name = models.CharField(max_length=30)
display_name = models.CharField(max_length=30)
path = models.CharField(max_length=50)
position = models.IntegerField(choices=choice)