BO 1.35 webhook live db for purchase
This commit is contained in:
parent
c51106cca9
commit
e696221a5b
@ -15,7 +15,7 @@ class TestRouter:
|
|||||||
if self.cloning == True:
|
if self.cloning == True:
|
||||||
return 'live'
|
return 'live'
|
||||||
elif model._meta.app_label == 'controlling':
|
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'
|
return 'live'
|
||||||
else:
|
else:
|
||||||
raise Exception("This table cannot be changed!")
|
raise Exception("This table cannot be changed!")
|
||||||
|
@ -43,6 +43,7 @@ class Purchase(models.Model):
|
|||||||
db_table = 'purchase'
|
db_table = 'purchase'
|
||||||
verbose_name = _("Purchase")
|
verbose_name = _("Purchase")
|
||||||
verbose_name_plural = _("Purchases")
|
verbose_name_plural = _("Purchases")
|
||||||
|
app_label = 'controlling'
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
Loading…
Reference in New Issue
Block a user