Fixed a bug where giving a limit but no offset would cause a 505.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 17 Mar 2009 20:24:59 +0000
changeset 1917 334094450b77
parent 1916 71b3f3521a10
child 1918 77c726b96916
Fixed a bug where giving a limit but no offset would cause a 505. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/program.py
--- a/app/soc/views/models/program.py	Tue Mar 17 18:03:31 2009 +0000
+++ b/app/soc/views/models/program.py	Tue Mar 17 20:24:59 2009 +0000
@@ -393,7 +393,7 @@
 
     get_dict = request.GET
 
-    if not (get_dict.get('limit') or get_dict.get('offset')):
+    if not (get_dict.get('limit') and get_dict.get('offset')):
       return self.json(request, {})
 
     try: