diff --git a/locale/ca/LC_MESSAGES/django.po b/locale/ca/LC_MESSAGES/django.po index 63492da..cf62af7 100644 --- a/locale/ca/LC_MESSAGES/django.po +++ b/locale/ca/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-04-09 11:57+0000\n" +"POT-Creation-Date: 2024-04-09 18:10+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -97,7 +97,7 @@ msgstr "Envia correu per reiniciar contrasenya" msgid "Contact" msgstr "Contacte" -#: shipanaro/admin.py:138 shipanaro/models.py:84 +#: shipanaro/admin.py:138 shipanaro/models.py:92 msgid "Address" msgstr "Adreça" @@ -105,7 +105,7 @@ msgstr "Adreça" msgid "Status" msgstr "Estat" -#: shipanaro/admin.py:160 shipanaro/models.py:109 +#: shipanaro/admin.py:160 shipanaro/models.py:117 msgid "Notes" msgstr "Notes" @@ -247,35 +247,45 @@ msgstr "Número d'identificació" msgid "ID Type" msgstr "Tipus d'identificació" -#: shipanaro/models.py:79 -msgid "Use a picture that includes both sides of an ID card" -msgstr "Utilitza una foto on es vegin les dues cares del document (max 10Mb)" - #: shipanaro/models.py:80 +msgid "" +"Use a picture that includes both sides of an ID card, or add a second photo " +"below" +msgstr "Utilitza una foto on es vegin les dues cares del document (max 10Mb), o afegeix una segona foto més avall" + +#: shipanaro/models.py:82 msgid "ID Photo" msgstr "Fotografia del document d'identificació" +#: shipanaro/models.py:87 +msgid "Additional picture for id side 2" +msgstr "Foto addicional per l'altra banda del document" + #: shipanaro/models.py:88 +msgid "ID Photo 2" +msgstr "Fotografia addicional del document d'identificació" + +#: shipanaro/models.py:96 msgid "City" msgstr "Municipi" -#: shipanaro/models.py:92 +#: shipanaro/models.py:100 msgid "Postcode" msgstr "Codi Postal" -#: shipanaro/models.py:96 +#: shipanaro/models.py:104 msgid "Province" msgstr "Província" -#: shipanaro/models.py:100 +#: shipanaro/models.py:108 msgid "Phone" msgstr "Telèfon" -#: shipanaro/models.py:104 +#: shipanaro/models.py:112 msgid "Phone 2" msgstr "Telèfon 2" -#: shipanaro/models.py:137 +#: shipanaro/models.py:145 msgid "Newsletter" msgstr "Butlletí" diff --git a/shipanaro/auth/forms.py b/shipanaro/auth/forms.py index fe8804d..e85e574 100644 --- a/shipanaro/auth/forms.py +++ b/shipanaro/auth/forms.py @@ -93,6 +93,7 @@ class Meta: "nid_type", "nid", "id_photo", + "id_photo2", "address", "city", "postal_code", @@ -130,6 +131,7 @@ def __init__(self, *args, **kwargs): css_class="form-row", ), "id_photo", + "id_photo2", HTML("

Domicili

"), "address", Row( diff --git a/shipanaro/migrations/0017_auto_20240409_1814.py b/shipanaro/migrations/0017_auto_20240409_1814.py new file mode 100644 index 0000000..a62fb97 --- /dev/null +++ b/shipanaro/migrations/0017_auto_20240409_1814.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.25 on 2024-04-09 18:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('shipanaro', '0016_auto_20240227_1726'), + ] + + operations = [ + migrations.AddField( + model_name='membership', + name='id_photo2', + field=models.ImageField(blank=True, help_text="Foto addicional per l'altra banda del document", null=True, upload_to='id_photos', verbose_name="Fotografia addicional del document d'identificació"), + ), + migrations.AlterField( + model_name='membership', + name='id_photo', + field=models.ImageField(help_text='Utilitza una foto on es vegin les dues cares del document (max 10Mb), o afegeix una segona foto més avall', null=True, upload_to='id_photos', verbose_name="Fotografia del document d'identificació"), + ), + ] diff --git a/shipanaro/models.py b/shipanaro/models.py index e45e5a5..f70cdbf 100644 --- a/shipanaro/models.py +++ b/shipanaro/models.py @@ -76,10 +76,19 @@ class Membership(models.Model): ) id_photo = models.ImageField( upload_to="id_photos", - help_text=_("Use a picture that includes both sides of an ID card"), + help_text=_( + "Use a picture that includes both sides of an ID card, or add a second photo below" + ), verbose_name=_("ID Photo"), null=True, ) + id_photo2 = models.ImageField( + upload_to="id_photos", + help_text=_("Additional picture for id side 2"), + verbose_name=_("ID Photo 2"), + blank=True, + null=True, + ) address = models.CharField( verbose_name=_("Address"), max_length=140,