diff --git a/photo21/locale/fr/LC_MESSAGES/django.po b/photo21/locale/fr/LC_MESSAGES/django.po index 3f8956a..18d2014 100644 --- a/photo21/locale/fr/LC_MESSAGES/django.po +++ b/photo21/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-10-15 12:15+0000\n" +"POT-Creation-Date: 2021-10-22 16:05+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -317,6 +317,10 @@ msgstr "date de début" msgid "end date" msgstr "date de fin" +#: photologue_custom/models.py:56 +msgid "license" +msgstr "licence" + #: photologue_custom/templates/photologue/gallery_archive.html:7 #: photologue_custom/templates/photologue/gallery_archive.html:12 msgid "Latest photo galleries" diff --git a/photologue_custom/migrations/0004_photoextended_license.py b/photologue_custom/migrations/0004_photoextended_license.py new file mode 100644 index 0000000..87c6887 --- /dev/null +++ b/photologue_custom/migrations/0004_photoextended_license.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.24 on 2021-10-22 16:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photologue_custom', '0003_auto_20211013_1507'), + ] + + operations = [ + migrations.AddField( + model_name='photoextended', + name='license', + field=models.CharField(blank=True, max_length=255, verbose_name='license'), + ), + ] diff --git a/photologue_custom/models.py b/photologue_custom/models.py index 09e2765..6275e64 100644 --- a/photologue_custom/models.py +++ b/photologue_custom/models.py @@ -50,6 +50,11 @@ class PhotoExtended(models.Model): on_delete=models.CASCADE, verbose_name=_("owner"), ) + license = models.CharField( + max_length=255, + blank=True, + verbose_name=_("license"), + ) class Meta: verbose_name = 'Extra fields'