Allow blank descriptions for channels

This commit is contained in:
Salt 2025-01-24 17:51:04 -06:00
parent cfd7d96385
commit 6113585c01
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 23:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('odyseescraper', '0018_alter_odyseechannel_tags_and_more'),
]
operations = [
migrations.AlterField(
model_name='odyseerelease',
name='description',
field=models.TextField(blank=True, help_text='A user-facing description of this release. This should mirror the official post from Odysee, if available'),
),
]

View File

@ -49,7 +49,7 @@ class OdyseeRelease(models.Model):
id = models.CharField(primary_key=True, max_length=512, default=uuid.uuid4, editable=False, db_index=True, help_text="A unique identifier for this release. Usually the LBRY claim ID, if available")
channel = models.ForeignKey(OdyseeChannel, on_delete=models.CASCADE, db_index=True, help_text="The channel that this release came from")
name = models.CharField(max_length=1024, help_text="The human-readable name of this release")
description = models.TextField(help_text="A user-facing description of this release. This should mirror the official post from Odysee, if available")
description = models.TextField(blank=True, help_text="A user-facing description of this release. This should mirror the official post from Odysee, if available")
released = models.DateField(help_text="The date that this release was posted in UTC")
url = models.URLField(max_length=512, help_text="The URL to the Odysee page where the release can be downloaded. It is NOT a direct download link")
thumbnail = models.URLField(max_length=512, help_text="The URL to the Odysee-hosted thumbnail of the release")