Skip to content
Snippets Groups Projects
Commit 6a09521d authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat: add is_use_explicitly_granted_by_author flag to Image model

This is the counterpart to the
requires_express_permission_for_publication field of the License model.
parent fa0abcfc
No related branches found
No related tags found
No related merge requests found
Pipeline #5433 passed
# Generated by Django 4.2.2 on 2023-08-30 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("program", "0069_alter_license_url"),
]
operations = [
migrations.AddField(
model_name="image",
name="is_use_explicitly_granted_by_author",
field=models.BooleanField(default=False),
),
]
......@@ -130,6 +130,7 @@ class License(models.Model):
class Image(models.Model):
alt_text = models.TextField(blank=True, default="")
credits = models.TextField(blank=True, default="")
is_use_explicitly_granted_by_author = models.BooleanField(default=False)
height = models.PositiveIntegerField(blank=True, null=True)
image = VersatileImageField(
blank=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment