fix issue with mailbox count calculation
- use 0 if no mailbox option is assigned to the hosting package
This commit is contained in:
parent
f211b535cf
commit
9890248e80
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class CustomerHostingPackage(HostingPackageBase):
|
||||||
).aggregate(
|
).aggregate(
|
||||||
mailbox_sum=models.Sum('number')
|
mailbox_sum=models.Sum('number')
|
||||||
)
|
)
|
||||||
return self.mailboxcount + result['mailbox_sum']
|
return self.mailboxcount + (result['mailbox_sum'] or 0)
|
||||||
|
|
||||||
def get_databases(self):
|
def get_databases(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue