include form errors
This commit is contained in:
parent
a98be6c12b
commit
8c1959e5a5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue