From aa997bfcd8111d092dd062e4b4a208ba352ac231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 21 Jan 2025 21:51:30 +0100 Subject: [PATCH] =?UTF-8?q?Aktu=C3=A1ln=C3=AD=20sous=20jsme=20cht=C4=9Bli?= =?UTF-8?q?=20blank=3DTrue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- various/migrations/0007_nastaveni_aktualni_sous.py | 2 +- various/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/various/migrations/0007_nastaveni_aktualni_sous.py b/various/migrations/0007_nastaveni_aktualni_sous.py index 718aabd4..b0013fe0 100644 --- a/various/migrations/0007_nastaveni_aktualni_sous.py +++ b/various/migrations/0007_nastaveni_aktualni_sous.py @@ -15,6 +15,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='nastaveni', name='aktualni_sous', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='soustredeni.soustredeni', verbose_name='Aktuálně připravovaný sous'), + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='soustredeni.soustredeni', verbose_name='Aktuálně připravovaný sous'), ), ] diff --git a/various/models.py b/various/models.py index b662b029..9f46d5c6 100644 --- a/various/models.py +++ b/various/models.py @@ -28,7 +28,7 @@ class Nastaveni(SingletonModel): aktualni_sous = models.ForeignKey( "soustredeni.Soustredeni", verbose_name='Aktuálně připravovaný sous', - null=True, blank=False, on_delete=models.PROTECT, + null=True, blank=True, on_delete=models.PROTECT, ) @property