Ajout nType sur les véhicules

This commit is contained in:
Ambulance Clerc
2022-11-26 14:43:13 +01:00
parent 608fc5eb96
commit f2ccff0b52
2 changed files with 7 additions and 1 deletions

View File

@@ -19,12 +19,18 @@ TYPES_CHOICES = [
('2', 'Matériel'),
('3', 'Péremption'),
]
VHC_CHOICES = [
('1', 'Ambulance Urgence'),
('2', 'Ambulance Transfert'),
('3', 'Véhicule service'),
]
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)
nType = models.CharField('Type', max_length=1, choices=VHC_CHOICES, default=1)
bLucas = models.BooleanField("Lucas", default=0)
nOrder = models.IntegerField("Ordre", default=0)