mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Unit tests fixed.
This commit is contained in:
@@ -19,10 +19,9 @@ class ResourcePoolForm(forms.Form):
|
||||
del kwargs["instance"]
|
||||
super(ResourcePoolForm, self).__init__(*args, **kwargs)
|
||||
for tpl in LimitTemplates().templates:
|
||||
if len(tpl) <= 3:
|
||||
continue
|
||||
if self.account is not None and self.account.group != tpl[3]:
|
||||
continue
|
||||
if len(tpl) > 3:
|
||||
if self.account is not None and self.account.group != tpl[3]:
|
||||
continue
|
||||
self.fields[tpl[0]] = forms.IntegerField(
|
||||
label=tpl[1], help_text=tpl[2]
|
||||
)
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
|
||||
"""
|
||||
from django.utils.translation import ugettext as _
|
||||
from modoboa.lib.exceptions import ModoboaException
|
||||
|
||||
from modoboa.extensions.limits.models import LimitsPool
|
||||
from modoboa.lib.exceptions import ModoboaException
|
||||
|
||||
|
||||
class LimitReached(ModoboaException):
|
||||
|
||||
Reference in New Issue
Block a user