BO 1.35 webhook live db for purchase

This commit is contained in:
Tibor Bossanyi (Freelancer) 2022-01-15 17:48:10 +01:00
parent c51106cca9
commit e696221a5b
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class TestRouter:
if self.cloning == True:
return 'live'
elif model._meta.app_label == 'controlling':
if model._meta.db_table == 'notification_history' or self.cloning == True:
if model._meta.db_table == 'notification_history' or model._meta.db_table == 'purchase' or self.cloning == True:
return 'live'
else:
raise Exception("This table cannot be changed!")

View File

@ -43,6 +43,7 @@ class Purchase(models.Model):
db_table = 'purchase'
verbose_name = _("Purchase")
verbose_name_plural = _("Purchases")
app_label = 'controlling'
def __str__(self):
return self.name