From d901303f0db99e71ee4de88a81044594c72c97f4 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 22 Feb 2018 22:19:46 +0100 Subject: Don't allow null wikilink and gitlink Both had a default set to '', so also put that in the model. Needed to give correct diffs in newer djangos --- pgcommitfest/commitfest/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pgcommitfest/commitfest/models.py') diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py index 45f3762..5936b65 100644 --- a/pgcommitfest/commitfest/models.py +++ b/pgcommitfest/commitfest/models.py @@ -80,10 +80,10 @@ class Patch(models.Model, DiffableModel): commitfests = models.ManyToManyField(CommitFest, through='PatchOnCommitFest') # If there is a wiki page discussing this patch - wikilink = models.URLField(blank=True, null=True, default='') + wikilink = models.URLField(blank=True, null=False, default='') # If there is a git repo about this patch - gitlink = models.URLField(blank=True, null=True, default='') + gitlink = models.URLField(blank=True, null=False, default='') # Mailthreads are ManyToMany in the other direction #mailthreads_set = ... -- cgit v1.2.3