Skip to content

Commit

Permalink
fix: blank=true sur le genre
Browse files Browse the repository at this point in the history
  • Loading branch information
jillro committed Jul 18, 2024
1 parent 916a7d7 commit bff4af5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions annuaire/migrations/0008_alter_member_gender.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 5.0.6 on 2024-07-18 10:00

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("annuaire", "0007_alter_member_gender"),
]

operations = [
migrations.AlterField(
model_name="member",
name="gender",
field=models.CharField(
blank=True,
choices=[
("", "Je ne souhaite pas répondre"),
("F", "Femme"),
("M", "Homme"),
("X", "Aucun des genres ci-dessus"),
],
default="",
help_text="Permettre d'afficher le genre sur les profils est un parti pris de l'équipe qui a développé l'annuaire. Cette démarche vise à favoriser la parité, en facilitant la recherche de profils féminins. ",
max_length=100,
verbose_name="Genre",
),
),
]
2 changes: 1 addition & 1 deletion annuaire/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class Meta:
)
gender = models.CharField(
"Genre",
blank=False,
blank=True,
choices=(
("", "Je ne souhaite pas répondre"),
("F", "Femme"),
Expand Down

0 comments on commit bff4af5

Please sign in to comment.