From 5556bdd0a170b68145ee2156d9be4f109ac45b3a Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 1 Oct 2012 10:14:47 -0400 Subject: [PATCH] Put the type conversions back into return_messages_immediately This had broken the check 'if last == -1' (imported from commit 2154dbda696d72ea14c841f43511846a87e4ba0d) --- zephyr/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/views.py b/zephyr/views.py index 9d33ae3c90..bbf4295ee6 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -153,6 +153,8 @@ def return_messages_immediately(request, handler, user_profile, **kwargs): last = request.POST.get("last") if first is None or last is None: return False + first = int(first) + last = int(last) where = 'bottom' query = Zephyr.objects.filter(usermessage__user_profile = user_profile).order_by('id')