Skip to content

Commit

Permalink
Updated old postdata key names to accurate ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirudh Sanjeev committed Feb 5, 2010
1 parent 3072ae6 commit 08e5f5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions core/views.py
Expand Up @@ -43,8 +43,11 @@ def submit(request):
# TODO: Convert to HTML
else:
errorMessage = "Expecting patchText POST parameter"
if("description" in request.POST):
newPatch.description = request.POST['description']
if("patchDesc" in request.POST):
newPatch.description = request.POST['patchDesc']

if("authorName" in request.POST):
newPatch.authorName = request.POST['authorName']

if("emailAddress" in request.POST):
newPatch.emailAddress = request.POST['emailAddress']
Expand Down
4 changes: 2 additions & 2 deletions diffviewer/views.py
Expand Up @@ -33,8 +33,8 @@ def showpatch(request, urlCode):
if (targetPatch.patchDesc != ""):
patchDesc = targetPatch.patchDesc

if (targetPatch.patchAuthor != ""):
patchAuthor = targetPatch.patchAuthor
if (targetPatch.authorName != ""):
patchAuthor = targetPatch.authorName



Expand Down

0 comments on commit 08e5f5d

Please sign in to comment.