Test refont grahpique véhicules

This commit is contained in:
Ambulance Clerc
2022-11-10 17:31:49 +01:00
parent 4fa883235b
commit 93842a9b63
7 changed files with 11 additions and 7 deletions

View File

@@ -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)