From f49e1b870b676d168115bf5f16057edce1c0fc36 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 23 Mar 2018 13:54:22 +0100 Subject: [PATCH] Fix unnecessary warning null=False means nothing on a ManyToMany, new django warns about it. --- pgweb/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/core/models.py b/pgweb/core/models.py index 8dfef50a..80233fea 100644 --- a/pgweb/core/models.py +++ b/pgweb/core/models.py @@ -125,7 +125,7 @@ class Organisation(models.Model): email = models.EmailField(null=False, blank=True) phone = models.CharField(max_length=100, null=False, blank=True) orgtype = models.ForeignKey(OrganisationType, null=False, blank=False, verbose_name="Organisation type") - managers = models.ManyToManyField(User, null=False, blank=False) + managers = models.ManyToManyField(User, blank=False) lastconfirmed = models.DateTimeField(null=False, blank=False, auto_now_add=True) send_notification = True -- 2.39.5