projects
/
pgcommitfest2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0c311
)
Don't allow null wikilink and gitlink
author
Magnus Hagander
<magnus@hagander.net>
Thu, 22 Feb 2018 21:19:46 +0000
(22:19 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
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
patch
|
blob
|
blame
|
history
diff --git
a/pgcommitfest/commitfest/models.py
b/pgcommitfest/commitfest/models.py
index 45f37627347f29aea2600d901938f4345da8897e..5936b65c7610ead10950b2d4232d7290fd8aa0dc 100644
(file)
--- 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=
Tru
e, default='')
+ wikilink = models.URLField(blank=True, null=
Fals
e, default='')
# If there is a git repo about this patch
- gitlink = models.URLField(blank=True, null=
Tru
e, default='')
+ gitlink = models.URLField(blank=True, null=
Fals
e, default='')
# Mailthreads are ManyToMany in the other direction
#mailthreads_set = ...