Browse Source

Unmanage seminar.Nastaveni

Sry, nebudu to psát česky :-)
pull/43/head
Pavel 'LEdoian' Turinsky 11 months ago
parent
commit
df2e4f086a
  1. 17
      seminar/migrations/0115_alter_nastaveni_options.py
  2. 1
      seminar/models/tvorba.py

17
seminar/migrations/0115_alter_nastaveni_options.py

@ -0,0 +1,17 @@
# Generated by Django 3.2.23 on 2023-12-11 19:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('seminar', '0114_related_name_se_zmenilo_a_django_chce_migraci_tak_dostane_migraci'),
]
operations = [
migrations.AlterModelOptions(
name='nastaveni',
options={'managed': False, 'verbose_name': 'Nastavení semináře'},
),
]

1
seminar/models/tvorba.py

@ -730,6 +730,7 @@ class Nastaveni(SingletonModel):
class Meta: class Meta:
db_table = 'seminar_nastaveni' db_table = 'seminar_nastaveni'
verbose_name = 'Nastavení semináře' verbose_name = 'Nastavení semináře'
managed = False
# aktualni_rocnik = models.ForeignKey(Rocnik, verbose_name='aktuální ročník', # aktualni_rocnik = models.ForeignKey(Rocnik, verbose_name='aktuální ročník',
# null=False, on_delete=models.PROTECT) # null=False, on_delete=models.PROTECT)

Loading…
Cancel
Save