commitfests = models.ManyToManyField(CommitFest, through='PatchOnCommitFest')
# If there is a wiki page discussing this patch
- wikilink = models.URLField(blank=True, null=True)
+ wikilink = models.URLField(blank=True, null=True, default='')
# If there is a git repo about this patch
- gitlink = models.URLField(blank=True, null=True)
+ gitlink = models.URLField(blank=True, null=True, default='')
# Mailthreads are OneToMany in the other direction
#mailthreads_set = ...
patch.save()
poc = PatchOnCommitFest(patch=patch, commitfest=cf, enterdate=datetime.now())
poc.save()
+ PatchHistory(patch=patch, by=request.user, what='Created patch record').save()
# Now add the thread
try:
doAttachThread(cf, patch, form.cleaned_data['threadmsgid'], request.user)
- return HttpResponseRedirect("/%s/%s/" % (cf.id, patch.id))
+ return HttpResponseRedirect("/%s/%s/edit/" % (cf.id, patch.id))
except Http404:
# Thread not found!
# This is a horrible breakage of API layers