Skip to content

Commit d901303

Browse files
committed
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
1 parent 9a0c311 commit d901303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgcommitfest/commitfest/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ class Patch(models.Model, DiffableModel):
8080
commitfests = models.ManyToManyField(CommitFest, through='PatchOnCommitFest')
8181

8282
# If there is a wiki page discussing this patch
83-
wikilink = models.URLField(blank=True, null=True, default='')
83+
wikilink = models.URLField(blank=True, null=False, default='')
8484

8585
# If there is a git repo about this patch
86-
gitlink = models.URLField(blank=True, null=True, default='')
86+
gitlink = models.URLField(blank=True, null=False, default='')
8787

8888
# Mailthreads are ManyToMany in the other direction
8989
#mailthreads_set = ...

0 commit comments

Comments
 (0)