Skip to content
Snippets Groups Projects
Verified Commit 17b9950e authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: rename model ContentLicense -> Licensing

parent c66ba509
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.18 on 2025-01-30 14:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("program", "0145_alter_timeslot_options"),
]
operations = [
migrations.RenameModel(
old_name="ContentLicense",
new_name="Licensing",
),
]
# Generated by Django 4.2.18 on 2025-01-30 14:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("program", "0146_rename_contentlicense_licensing"),
]
operations = [
migrations.RenameField(
model_name="image",
old_name="content_license",
new_name="licensing",
),
]
...@@ -144,7 +144,7 @@ class License(models.Model): ...@@ -144,7 +144,7 @@ class License(models.Model):
return self.identifier return self.identifier
class ContentLicense(models.Model): class Licensing(models.Model):
credits = models.TextField(blank=True, default="", help_text="Credits of the content.") credits = models.TextField(blank=True, default="", help_text="Credits of the content.")
is_use_explicitly_granted_by_author = models.BooleanField( is_use_explicitly_granted_by_author = models.BooleanField(
default=False, default=False,
...@@ -173,8 +173,8 @@ class Image(models.Model): ...@@ -173,8 +173,8 @@ class Image(models.Model):
width_field="width", width_field="width",
help_text="The URI of the image.", help_text="The URI of the image.",
) )
content_license = models.ForeignKey( licensing = models.ForeignKey(
ContentLicense, Licensing,
null=True, null=True,
on_delete=models.SET_NULL, on_delete=models.SET_NULL,
related_name="images", related_name="images",
......
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