mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
@@ -728,7 +728,7 @@ class Mailbox(DatesAware):
|
||||
if not self.quota:
|
||||
return 0
|
||||
q = Quota.objects.get(username=self.full_address)
|
||||
return q.bytes / (self.quota * 1048576) * 100
|
||||
return int(q.bytes / float(self.quota * 1048576) * 100)
|
||||
|
||||
def save_from_user(self, localpart, domain, user, quota=None, owner=None):
|
||||
"""Simple save method called for automatic creations
|
||||
|
||||
Reference in New Issue
Block a user