summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/views.py
diff options
context:
space:
mode:
authorMagnus Hagander2013-08-24 13:34:33 +0000
committerMagnus Hagander2013-08-24 13:34:33 +0000
commit4bde29ba4337e593acaf2b5b10f15cbd16fd203d (patch)
tree82d45f23b02a0173d4a0b4a2f73cc6bc6c1560e3 /pgcommitfest/commitfest/views.py
parent34faea0683cb2326f41d899312a30e1a979e996c (diff)
Stremaline the new patch flow
Diffstat (limited to 'pgcommitfest/commitfest/views.py')
-rw-r--r--pgcommitfest/commitfest/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py
index aa9fd1a..2066d64 100644
--- a/pgcommitfest/commitfest/views.py
+++ b/pgcommitfest/commitfest/views.py
@@ -166,10 +166,11 @@ def newpatch(request, cfid):
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