Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added app_label for app fork work #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/oscar_accounts/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class AccountType(MP_Node):

class Meta:
abstract = True
app_label = 'oscar_accounts'

def __str__(self):
return self.name
Expand Down Expand Up @@ -124,6 +125,7 @@ class Account(models.Model):

class Meta:
abstract = True
app_label = 'oscar_accounts'

def __str__(self):
if self.code:
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -443,6 +446,7 @@ def __str__(self):
self.transfer.reference, self.amount)

class Meta:
app_label = 'oscar_accounts'
unique_together = ('transfer', 'account')
abstract = True

Expand Down Expand Up @@ -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
Expand Down