Test refont grahpique véhicules
This commit is contained in:
@@ -10,9 +10,9 @@ BASES_CHOICES = [
|
||||
]
|
||||
STATUS_CHOICES = [
|
||||
('1', 'Opérationnel'),
|
||||
('2', 'Hors Service'),
|
||||
('3', 'Réserve'),
|
||||
('4', 'Utilisation altérée'),
|
||||
('2', 'Réserve'),
|
||||
('3', 'Utilisation altérée'),
|
||||
('4', 'Hors Service'),
|
||||
]
|
||||
TYPES_CHOICES = [
|
||||
('1', 'Technique'),
|
||||
@@ -25,6 +25,8 @@ class Vehicles(models.Model):
|
||||
sName = models.CharField("Indicatif", max_length=250)
|
||||
nBases = models.CharField('Basé à ', max_length=1, choices=BASES_CHOICES, default=1)
|
||||
nStatus = models.CharField('Statut', max_length=1, choices=STATUS_CHOICES, default=1)
|
||||
bLucas = models.BooleanField("Lucas", default=0)
|
||||
nOrder = models.IntegerField("Ordre", default=0)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user