Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1014 from yverdon/feature/yc-1198
Browse files Browse the repository at this point in the history
[YC-1198] add helptext
  • Loading branch information
AlexandreJunod authored Jun 21, 2024
2 parents 465caf5 + 289052d commit a660056
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions geocity/apps/forms/migrations/0036_alter_formcategory_meta_type.py
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
5 changes: 4 additions & 1 deletion geocity/apps/forms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a660056

Please sign in to comment.