Re: views without forms
On Mon, 2011-06-13 at 15:50 +0200, Masklinn wrote:
> You should check that it's not what's being done already, if the
> try/except
> blocks catch ValidationError it's possible you predecessor used that.
this is the code snippet:
try: booking.save()
except Exception, e:
return HttpResponse(simplejson.dumps({'s': 0, 'msg':'We are not able to get through at this moment, please try after sometime'}), mimetype="application/javascript")
>
> Django provides a bunch of built-in validators[1] and new validators
> are easy to write, and if you're not using form serialization (because
> the form UI is built in JS on the client), it can make more sense than
> using separate forms (which would add little to no value, especially
> if the validation is not overly complex).
this is not very clear.
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home