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

fix: make slug field on note blank=True and not unique

parent 4ec4abac
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.2 on 2023-09-07 03:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("program", "0073_alter_note_tags"),
]
operations = [
migrations.AlterField(
model_name="note",
name="slug",
field=models.SlugField(blank=True, max_length=32),
),
]
......@@ -444,7 +444,8 @@ class Note(models.Model):
image = models.ForeignKey(Image, null=True, on_delete=models.CASCADE, related_name="notes")
owner = models.ForeignKey(User, on_delete=models.CASCADE, related_name="notes", default=1)
playlist = models.TextField(blank=True)
slug = models.SlugField(max_length=32, unique=True)
# TODO: this requires show in the model and an unique_together constraint. Do we need this?
slug = models.SlugField(blank=True, max_length=32)
summary = models.TextField(blank=True)
tags = models.JSONField(blank=True)
timeslot = models.OneToOneField(TimeSlot, null=True, on_delete=models.SET_NULL, unique=True)
......
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