Allow 0 tags
This commit is contained in:
parent
83642c44dd
commit
aadc132b1d
18
odyseescraper/migrations/0013_alter_odyseerelease_tags.py
Normal file
18
odyseescraper/migrations/0013_alter_odyseerelease_tags.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.1.5 on 2025-01-24 22:15
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('odyseescraper', '0012_taggingrule_name'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='odyseerelease',
|
||||||
|
name='tags',
|
||||||
|
field=models.ManyToManyField(blank=True, help_text="A list of tags associated with this release. This should NOT contain extraneous tags from Odysee -- it's a data structure specific to this site.", related_name='releases', to='odyseescraper.tag'),
|
||||||
|
),
|
||||||
|
]
|
@ -53,7 +53,7 @@ class OdyseeRelease(models.Model):
|
|||||||
thumbnail = models.URLField(max_length=512, help_text="The URL to the Odysee-hosted thumbnail of the release")
|
thumbnail = models.URLField(max_length=512, help_text="The URL to the Odysee-hosted thumbnail of the release")
|
||||||
filehash = models.CharField(max_length=512, help_text="The hash of the file of the claim")
|
filehash = models.CharField(max_length=512, help_text="The hash of the file of the claim")
|
||||||
|
|
||||||
tags = models.ManyToManyField(Tag, related_name="releases", help_text="A list of tags associated with this release. This should NOT contain extraneous tags from Odysee -- it's a data structure specific to this site.")
|
tags = models.ManyToManyField(Tag, related_name="releases", blank=True, help_text="A list of tags associated with this release. This should NOT contain extraneous tags from Odysee -- it's a data structure specific to this site.")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user