Actually I want that to be a charfield so I can bind it to claimID later

This commit is contained in:
Salt 2025-01-18 23:12:05 -06:00
parent 01bdcb4f7d
commit 587d73f070
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 5.1.5 on 2025-01-19 05:11
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('odyseescraper', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='odyseerelease',
name='id',
field=models.CharField(default=uuid.uuid4, editable=False, max_length=512, primary_key=True, serialize=False),
),
]

View File

@ -8,7 +8,7 @@ class OdyseeChannel(models.Model):
handle = models.CharField(max_length=1024)
class OdyseeRelease(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
id = models.CharField(primary_key=True, max_length=512, default=uuid.uuid4, editable=False)
channel = models.ForeignKey(OdyseeChannel, on_delete=models.CASCADE)
name = models.CharField(max_length=1024)
description = models.TextField()