diff --git a/vehicles/models.py b/vehicles/models.py index a963c84..ec95cf6 100644 --- a/vehicles/models.py +++ b/vehicles/models.py @@ -49,7 +49,12 @@ class Vehicles(models.Model): return self.get_all_infos(2) def get_all_infos_perempt(self): - return self.get_all_infos(3) + return self.get_all_infos(3)[3::] + + def get_all_infos_perempt_perma(self): + return self.get_all_infos(3)[:3] + + diff --git a/vehicles/templates/vhc/vhc.html b/vehicles/templates/vhc/vhc.html index 444616f..5bfd077 100644 --- a/vehicles/templates/vhc/vhc.html +++ b/vehicles/templates/vhc/vhc.html @@ -42,9 +42,15 @@
Péremptions
+ +
+ {% for info in vhc.get_all_infos_perempt_perma %} + {{info.sDesc}}
+ {% endfor %} +
{% for info in vhc.get_all_infos_perempt %}
- {{info.sDesc}} + {{info.sDesc}}
{% endfor %}