Skip to content

Commit

Permalink
Add hydrogène to motorisation list
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Jun 27, 2024
1 parent 7315f24 commit 9e9ae64
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 5.0.6 on 2024-06-27 13:04

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("vehicules_relais", "0005_dispositionspecifique"),
]

operations = [
migrations.AlterField(
model_name="vehicule",
name="motorisation",
field=models.CharField(
blank=True,
choices=[
("essence", "Essence"),
("diesel", "Diesel"),
("hybride", "Hybride"),
("hybride_rechargeable", "Hybride rechargeable"),
("electrique", "Electrique"),
("GPL", "GPL"),
("E85", "E85"),
("h2", "Hydrogène"),
],
max_length=64,
verbose_name="Motorisation du véhicule",
),
),
]
1 change: 1 addition & 0 deletions mesads/vehicules_relais/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def main_features(self):
("electrique", "Electrique"),
("GPL", "GPL"),
("E85", "E85"),
("h2", "Hydrogène"),
)

motorisation = models.CharField(
Expand Down

0 comments on commit 9e9ae64

Please sign in to comment.