add team_number
This commit is contained in:
@@ -8,6 +8,12 @@ BASES_CHOICES = [
|
|||||||
('1', 'Monthey'),
|
('1', 'Monthey'),
|
||||||
('2', 'Uvrier'),
|
('2', 'Uvrier'),
|
||||||
]
|
]
|
||||||
|
TEAM_NUMBER = [
|
||||||
|
('1', 'Équipe 1'),
|
||||||
|
('2', 'Equipe 2'),
|
||||||
|
('3', 'Equipe 3'),
|
||||||
|
('4', 'Equipe 4'),
|
||||||
|
]
|
||||||
STATUS_CHOICES = [
|
STATUS_CHOICES = [
|
||||||
('1', 'Opérationnel'),
|
('1', 'Opérationnel'),
|
||||||
('2', 'Réserve'),
|
('2', 'Réserve'),
|
||||||
@@ -33,6 +39,7 @@ class Vehicles(models.Model):
|
|||||||
nType = models.CharField('Type', max_length=1, choices=VHC_CHOICES, default=1)
|
nType = models.CharField('Type', max_length=1, choices=VHC_CHOICES, default=1)
|
||||||
bLucas = models.BooleanField("Lucas", default=0)
|
bLucas = models.BooleanField("Lucas", default=0)
|
||||||
nOrder = models.IntegerField("Ordre", default=0)
|
nOrder = models.IntegerField("Ordre", default=0)
|
||||||
|
nTeam = models.CharField('Équipe', max_length=1, choices=TEAM_NUMBER, default=1)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
Reference in New Issue
Block a user