diff --git a/bds/migrations/0006_bdsprofile_comments.py b/bds/migrations/0006_bdsprofile_comments.py new file mode 100644 index 00000000..7950955f --- /dev/null +++ b/bds/migrations/0006_bdsprofile_comments.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.12 on 2020-08-28 12:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bds", "0005_remove_bdsprofile_certificate_file"), + ] + + operations = [ + migrations.AddField( + model_name="bdsprofile", + name="comments", + field=models.TextField( + blank=True, + help_text="Attention : l'utilisateur·ice dispose d'un droit d'accès" + " aux données le/la concernant, dont le contenu de ce champ !", + verbose_name="commentaires", + ), + ), + ] diff --git a/bds/models.py b/bds/models.py index 1b9ca6bc..0ea46466 100644 --- a/bds/models.py +++ b/bds/models.py @@ -84,6 +84,15 @@ class BDSProfile(models.Model): _("type de cotisation"), choices=TYPE_COTIZ_CHOICES, max_length=9 ) + comments = models.TextField( + _("commentaires"), + blank=True, + help_text=_( + "Attention : l'utilisateur·ice dispose d'un droit d'accès aux données " + "le/la concernant, dont le contenu de ce champ !" + ), + ) + class Meta: verbose_name = _("Profil BDS") verbose_name_plural = _("Profils BDS") diff --git a/bds/templates/bds/forms/textarea.html b/bds/templates/bds/forms/textarea.html index 541c63c7..c5bc50f4 100644 --- a/bds/templates/bds/forms/textarea.html +++ b/bds/templates/bds/forms/textarea.html @@ -1,3 +1,5 @@ +{% load bulma_utils %} +