Add license field on photos

This commit is contained in:
Alexandre Iooss 2021-10-22 18:06:31 +02:00
parent fb43ac14b7
commit 55e1b71f3a
3 changed files with 28 additions and 1 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -317,6 +317,10 @@ msgstr "date de début"
msgid "end date" msgid "end date"
msgstr "date de fin" 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:7
#: photologue_custom/templates/photologue/gallery_archive.html:12 #: photologue_custom/templates/photologue/gallery_archive.html:12
msgid "Latest photo galleries" msgid "Latest photo galleries"

View file

@ -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'),
),
]

View file

@ -50,6 +50,11 @@ class PhotoExtended(models.Model):
on_delete=models.CASCADE, on_delete=models.CASCADE,
verbose_name=_("owner"), verbose_name=_("owner"),
) )
license = models.CharField(
max_length=255,
blank=True,
verbose_name=_("license"),
)
class Meta: class Meta:
verbose_name = 'Extra fields' verbose_name = 'Extra fields'