From 7a032a4a0906559f661e967ce2af935c555f5c6b Mon Sep 17 00:00:00 2001 From: dd Date: Wed, 8 Feb 2023 15:25:54 +0100 Subject: [PATCH] fix: Added app_label for app fork work --- src/oscar_accounts/abstract_models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/oscar_accounts/abstract_models.py b/src/oscar_accounts/abstract_models.py index 35c9535..b4da50d 100644 --- a/src/oscar_accounts/abstract_models.py +++ b/src/oscar_accounts/abstract_models.py @@ -39,6 +39,7 @@ class AccountType(MP_Node): class Meta: abstract = True + app_label = 'oscar_accounts' def __str__(self): return self.name @@ -124,6 +125,7 @@ class Account(models.Model): class Meta: abstract = True + app_label = 'oscar_accounts' def __str__(self): if self.code: @@ -366,6 +368,7 @@ def __str__(self): class Meta: abstract = True ordering = ('-date_created',) + app_label = 'oscar_accounts' def delete(self, *args, **kwargs): raise RuntimeError("Transfers cannot be deleted") @@ -443,6 +446,7 @@ def __str__(self): self.transfer.reference, self.amount) class Meta: + app_label = 'oscar_accounts' unique_together = ('transfer', 'account') abstract = True @@ -471,6 +475,7 @@ class Meta: abstract = True verbose_name = _("IP address record") verbose_name_plural = _("IP address records") + app_label = 'oscar_accounts' def __str__(self): return self.ip_address