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

fix: make subtitle field in Category a CharField

parent 7862af70
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.2 on 2023-06-20 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("program", "0060_alter_licensetype_name_alter_licensetype_type_and_more"),
]
operations = [
migrations.AlterField(
model_name="category",
name="subtitle",
field=models.CharField(blank=True, max_length=32),
),
]
...@@ -54,7 +54,7 @@ class Category(models.Model): ...@@ -54,7 +54,7 @@ class Category(models.Model):
is_active = models.BooleanField(default=True) is_active = models.BooleanField(default=True)
name = models.CharField(max_length=32) name = models.CharField(max_length=32)
slug = models.SlugField(max_length=32, unique=True) slug = models.SlugField(max_length=32, unique=True)
subtitle = models.TextField(blank=True) subtitle = models.CharField(blank=True, max_length=32)
class Meta: class Meta:
ordering = ("name",) ordering = ("name",)
......
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