From 4d2844c1f5cc20b49cc9ab0f9767fd00cb64cb66 Mon Sep 17 00:00:00 2001 From: Ionut Filip Date: Wed, 13 Feb 2019 16:43:45 +0200 Subject: [PATCH] Fixed arguments passed to domain --- core/admin/mailu/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/admin/mailu/manage.py b/core/admin/mailu/manage.py index 3a8256ad..ac60d2d5 100644 --- a/core/admin/mailu/manage.py +++ b/core/admin/mailu/manage.py @@ -94,7 +94,8 @@ def user(localpart, domain_name, password, hash_scheme=None): def domain(domain_name, max_users=-1, max_aliases=-1, max_quota_bytes=0): domain = models.Domain.query.get(domain_name) if not domain: - domain = models.Domain(name=domain_name) + domain = models.Domain(name=domain_name, max_users=max_users, + max_aliases=max_aliases, max_quota_bytes=max_quota_bytes) db.session.add(domain) db.session.commit()