diff options
author | Magnus Hagander | 2018-02-22 21:19:46 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-02-22 21:19:46 +0000 |
commit | d901303f0db99e71ee4de88a81044594c72c97f4 (patch) | |
tree | 61b3c4f4d6e45ea01d5a8491b208ad8a78f227b0 | |
parent | 9a0c311011aeb014cf2ce41fe9ca6bc4cfd2a47c (diff) |
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
-rw-r--r-- | pgcommitfest/commitfest/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = ... |