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

feat: make slug field of Show blank-able

parent eadaa66a
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.10 on 2024-02-12 18:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("program", "0078_remove_linktype_type_linktype_is_active_and_more"),
]
operations = [
migrations.AlterField(
model_name="show",
name="slug",
field=models.SlugField(blank=True, max_length=255, unique=True),
),
]
......@@ -243,7 +243,7 @@ class Show(models.Model):
"self", blank=True, null=True, on_delete=models.CASCADE, related_name="successors"
)
short_description = models.TextField()
slug = models.CharField(max_length=255, unique=True)
slug = models.SlugField(blank=True, max_length=255, unique=True)
topic = models.ManyToManyField(Topic, blank=True, related_name="shows")
type = models.ForeignKey(
Type, blank=True, null=True, on_delete=models.CASCADE, related_name="shows"
......
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