Skip to content
Snippets Groups Projects
Commit 2b8d1544 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

dont allow octopus person page person attribute to be empty in admin

parent e8fc1219
Branches
No related tags found
2 merge requests!1131Release,!1130Minor bugfixes
# Generated by Django 5.0.7 on 2024-08-29 17:49
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('district', '0284_alter_districtnewprogrampage_program'),
('shared', '0010_alter_octopusperson_photo'),
]
operations = [
migrations.AlterField(
model_name='districtoctopuspersonpage',
name='person',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='shared.octopusperson', verbose_name='Osoba'),
),
]
......@@ -349,7 +349,7 @@ class DistrictOctopusPersonPage(
"shared.OctopusPerson",
# Wagtail doesn't support CASCADE, so we'll just deal with that somewhere else.
on_delete=models.SET_NULL,
blank=True,
blank=False,
null=True,
related_name="+",
verbose_name="Osoba",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment