From 4d5376f0f02ffaed6baa10a156014948085802bc Mon Sep 17 00:00:00 2001 From: Tonis Piip Date: Fri, 10 Mar 2017 18:18:32 +0200 Subject: [PATCH] Remove null=True for Mailbox.uri and Mailbox.from_email According to Django's docs it's advised to not use null for string fields. --- django_mailbox/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django_mailbox/models.py b/django_mailbox/models.py index 89eb0ad..d17acf2 100644 --- a/django_mailbox/models.py +++ b/django_mailbox/models.py @@ -64,7 +64,6 @@ class Mailbox(models.Model): "contain illegal characters (like @, :, etc)." )), blank=True, - null=True, default=None, ) @@ -81,7 +80,6 @@ class Mailbox(models.Model): "be set to match the setting `DEFAULT_FROM_EMAIL`." )), blank=True, - null=True, default=None, )