Don't allow null wikilink and gitlink
authorMagnus Hagander <[email protected]>
Thu, 22 Feb 2018 21:19:46 +0000 (22:19 +0100)
committerMagnus Hagander <[email protected]>
Thu, 22 Feb 2018 21:19:46 +0000 (22:19 +0100)
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

index 45f37627347f29aea2600d901938f4345da8897e..5936b65c7610ead10950b2d4232d7290fd8aa0dc 100644 (file)
@@ -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 = ...