From 289052dc851ec527e07b8a332a6db7fe66403c1d Mon Sep 17 00:00:00 2001 From: AlexandreJunod Date: Mon, 3 Jun 2024 08:36:28 +0200 Subject: [PATCH] add helptext --- .../0036_alter_formcategory_meta_type.py | 31 +++++++++++++++++++ geocity/apps/forms/models.py | 5 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 geocity/apps/forms/migrations/0036_alter_formcategory_meta_type.py diff --git a/geocity/apps/forms/migrations/0036_alter_formcategory_meta_type.py b/geocity/apps/forms/migrations/0036_alter_formcategory_meta_type.py new file mode 100644 index 000000000..82ee85ae3 --- /dev/null +++ b/geocity/apps/forms/migrations/0036_alter_formcategory_meta_type.py @@ -0,0 +1,31 @@ +# Generated by Django 4.2.11 on 2024-06-03 06:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("forms", "0035_service_fee"), + ] + + operations = [ + migrations.AlterField( + model_name="formcategory", + name="meta_type", + field=models.IntegerField( + choices=[ + (0, "Autres"), + (1, "Chantier"), + (2, "Construction"), + (3, "Événement sportif"), + (4, "Événement culturel"), + (5, "Événement commercial"), + (6, "Dispositif de police"), + ], + default=0, + help_text="Utilisé dans le calendrier afin de filtrer par type d'événement", + verbose_name="Type générique", + ), + ), + ] diff --git a/geocity/apps/forms/models.py b/geocity/apps/forms/models.py index 3d58c8a44..e69a98661 100644 --- a/geocity/apps/forms/models.py +++ b/geocity/apps/forms/models.py @@ -60,7 +60,10 @@ class FormCategory(models.Model): limit_choices_to={"permit_department__is_integrator_admin": True}, ) meta_type = models.IntegerField( - _("Type générique"), choices=META_TYPE_CHOICES, default=META_TYPE_OTHER + _("Type générique"), + choices=META_TYPE_CHOICES, + default=META_TYPE_OTHER, + help_text="Utilisé dans le calendrier afin de filtrer par type d'événement", ) tags = TaggableManager( blank=True,