Previously conditionals used the wrong case to reference request.POST.

(imported from commit 2624def3745c3b26114ee1a1a9a20288e078b243)
This commit is contained in:
Luke Faraone 2012-10-30 13:29:40 -04:00
parent 9f61e27218
commit 1d6a5741e0
1 changed files with 2 additions and 2 deletions

View File

@ -272,9 +272,9 @@ def get_old_messages_backend(request, user_profile=None,
apply_markdown=True): apply_markdown=True):
if not ('start' in request.POST): if not ('start' in request.POST):
return json_error("Missing 'start' parameter") return json_error("Missing 'start' parameter")
if not ('which' in request.post): if not ('which' in request.POST):
return json_error("Missing 'which' parameter") return json_error("Missing 'which' parameter")
if not ('number' in request.post): if not ('number' in request.POST):
return json_error("Missing 'number' parameter") return json_error("Missing 'number' parameter")
start = int(request.POST.get("start")) start = int(request.POST.get("start"))