From 8c1959e5a5724cfd2e5bb9e9cc2578d54a6e4b33 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 27 Feb 2010 16:55:23 +0530 Subject: [PATCH] include form errors --- pandora/oxuser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/oxuser/views.py b/pandora/oxuser/views.py index 6ea3968..c329c0c 100644 --- a/pandora/oxuser/views.py +++ b/pandora/oxuser/views.py @@ -18,7 +18,7 @@ from oxdjango.decorators import login_required_json import models def json_errors(form): - return {'status': {'code': 402, 'text': 'form error'}} + return {'status': {'code': 402, 'text': 'form error', 'data': form.errors}} class LoginForm(forms.Form): username = forms.TextInput()