Ajout nType sur les véhicules
This commit is contained in:
@@ -21,7 +21,7 @@ class _vhc_admin(admin.ModelAdmin):
|
||||
}),
|
||||
('Informations diverses', {
|
||||
'classes': ('collapse', 'close'),
|
||||
'fields': ("nOrder",)
|
||||
'fields': ("nOrder", "nType")
|
||||
}),
|
||||
)
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user