From 7f5bd98a2e5bd94f3ac128a05d838a9b98d5b9d6 Mon Sep 17 00:00:00 2001 From: Stefan Auditor Date: Sat, 14 Apr 2018 13:02:00 +0200 Subject: [PATCH] Add parameters to database field --- core/admin/mailu/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index 1f11b0a3..2029262e 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -18,7 +18,7 @@ class IdnaDomain(db.TypeDecorator): """ Stores a Unicode string in it's IDNA representation (ASCII only) """ - impl = db.String + impl = db.String(80) def process_bind_param(self, value, dialect): @@ -32,7 +32,7 @@ class IdnaEmail(db.TypeDecorator): """ Stores a Unicode string in it's IDNA representation (ASCII only) """ - impl = db.String + impl = db.String(255, collation="NOCASE") def process_bind_param(self, value, dialect):