keep your hands to yourself

This commit is contained in:
Kenneth Reitz
2011-06-15 23:38:13 -04:00
parent aafe990175
commit 1985a205e1
+1 -1
View File
@@ -55,7 +55,7 @@ def get_dict(*keys, **extras):
data = request.data
form = request.form
if len(form) == 1:
if len(form) == 1 and not len(data):
if not form.values.pop():
data = form.keys().pop()
form = None