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'