Allow 0 tags

This commit is contained in:
Salt 2025-01-24 16:15:47 -06:00
parent 83642c44dd
commit aadc132b1d
2 changed files with 19 additions and 1 deletions

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

View File

@ -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")
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):
return self.name