On autorise les tags sans catégorie (bien sûr)

This commit is contained in:
Jean-Marie Favreau 2024-11-02 15:14:12 +01:00
parent e90b5add2a
commit 9345e1b12c
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 4.2.9 on 2024-11-02 14:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('agenda_culturel', '0100_tag_category'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='category',
field=models.ForeignKey(blank=True, default=None, help_text='This tags corresponds to a sub-category of the given category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='agenda_culturel.category', verbose_name='Category'),
),
]

View File

@ -191,6 +191,7 @@ class Tag(models.Model):
verbose_name=_("Category"),
help_text=_("This tags corresponds to a sub-category of the given category"),
null=True,
blank=True,
default=None,
on_delete=models.SET_NULL,
)