From 7dc0e1d71be21b0d2ed5e798a410fc920e9318a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 10 Aug 2023 12:45:28 +0200 Subject: [PATCH] =?UTF-8?q?P=C5=99ejmenov=C3=A1n=C3=AD=20tabulek=20model?= =?UTF-8?q?=C5=AF=20zbyl=C3=BDch=20v=20aplikaci=20seminar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0123_prejmenovani_zbytku.py | 29 +++++++++++++++++++ seminar/models/nastaveni.py | 2 +- seminar/models/novinky.py | 1 + seminar/models/pomocne.py | 4 +-- 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 seminar/migrations/0123_prejmenovani_zbytku.py diff --git a/seminar/migrations/0123_prejmenovani_zbytku.py b/seminar/migrations/0123_prejmenovani_zbytku.py new file mode 100644 index 00000000..f7bb01fc --- /dev/null +++ b/seminar/migrations/0123_prejmenovani_zbytku.py @@ -0,0 +1,29 @@ +# Generated by Django 2.2.28 on 2023-08-10 10:43 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0122_smazani_treenode'), + ] + + operations = [ + migrations.AlterModelTable( + name='nastaveni', + table='mam_nastaveni', + ), + migrations.AlterModelTable( + name='novinky', + table='mam_novinky', + ), + migrations.AlterModelTable( + name='obrazek', + table='mam_obrazky', + ), + migrations.AlterModelTable( + name='text', + table='mam_texty', + ), + ] diff --git a/seminar/models/nastaveni.py b/seminar/models/nastaveni.py index 09e74e8c..46227b05 100644 --- a/seminar/models/nastaveni.py +++ b/seminar/models/nastaveni.py @@ -10,7 +10,7 @@ from tvorba.models import Cislo class Nastaveni(SingletonModel): class Meta: - db_table = 'seminar_nastaveni' + db_table = 'mam_nastaveni' verbose_name = 'Nastavení semináře' # aktualni_rocnik = models.ForeignKey(Rocnik, verbose_name='aktuální ročník', diff --git a/seminar/models/novinky.py b/seminar/models/novinky.py index 261e50ba..7a3950de 100644 --- a/seminar/models/novinky.py +++ b/seminar/models/novinky.py @@ -11,6 +11,7 @@ from personalni.models import Organizator class Novinky(models.Model): class Meta: + db_table = 'mam_novinky' verbose_name = 'Novinka' verbose_name_plural = 'Novinky' ordering = ['-datum'] diff --git a/seminar/models/pomocne.py b/seminar/models/pomocne.py index 9fc6b7cd..c9ef3268 100644 --- a/seminar/models/pomocne.py +++ b/seminar/models/pomocne.py @@ -9,7 +9,7 @@ logger = logging.getLogger(__name__) class Text(SeminarModelBase): class Meta: - db_table = 'seminar_texty' + db_table = 'mam_texty' verbose_name = 'text' verbose_name_plural = 'texty' @@ -38,7 +38,7 @@ class Text(SeminarModelBase): class Obrazek(SeminarModelBase): class Meta: - db_table = 'seminar_obrazky' + db_table = 'mam_obrazky' verbose_name = 'obrázek' verbose_name_plural = 'obrázky'