Ajout des éléments de migration

This commit is contained in:
Jean-Marie Favreau 2023-11-15 16:42:41 +01:00
parent 8b452913a8
commit 2a259ea544
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 4.2.7 on 2023-11-15 15:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('agenda_culturel', '0002_alter_event_category'),
]
operations = [
migrations.AlterField(
model_name='event',
name='category',
field=models.ForeignKey(default=None, help_text='Category of the event', null=True, on_delete=django.db.models.deletion.SET_DEFAULT, to='agenda_culturel.category', verbose_name='Category'),
),
]

View File

@ -0,0 +1,19 @@
# Generated by Django 4.2.7 on 2023-11-15 15:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('agenda_culturel', '0003_alter_event_category'),
]
operations = [
migrations.AlterField(
model_name='event',
name='category',
field=models.ForeignKey(default=1, help_text='Category of the event', null=True, on_delete=django.db.models.deletion.SET_DEFAULT, to='agenda_culturel.category', verbose_name='Category'),
),
]