add json_errors placeholder

This commit is contained in:
j 2010-02-27 16:07:00 +05:30
parent 2304b0c4bd
commit 7c9ef68b10
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import uuid
import hashlib
@ -17,6 +17,9 @@ from oxdjango.decorators import login_required_json
import models
def json_errors(form):
return {'status': {'code': 402, 'text': 'form error'}}
class LoginForm(forms.Form):
username = forms.TextInput()
password = forms.TextInput()