From b2e3d940bba8bd1f60bda2650117acf96123c8c6 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Mon, 28 Nov 2022 15:59:02 +0100 Subject: [PATCH] fixed Majordome table name --- src/core/pyros_django/common/models.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/pyros_django/common/models.py b/src/core/pyros_django/common/models.py index 02e504f..b21b9e1 100644 --- a/src/core/pyros_django/common/models.py +++ b/src/core/pyros_django/common/models.py @@ -2678,6 +2678,9 @@ class Majordome(models.Model): default = DAY_MODE, max_length=15 ) + class Meta: + managed = True + db_table = 'majordome' @classmethod def object(cls): @@ -2710,4 +2713,9 @@ class Tickets: (LEVEL_FOUR,"Known issue without immediate solution"), (LEVEL_FIVE,"Issue not categorized until it happened") ) - security_level = models.TextField(choices=SECURITY_LEVEL_CHOICES, default=LEVEL_ONE) \ No newline at end of file + security_level = models.TextField(choices=SECURITY_LEVEL_CHOICES, default=LEVEL_ONE) + + class Meta: + managed = True + db_table = 'tickets' + verbose_name_plural = "tickets" \ No newline at end of file -- libgit2 0.21.2