Re: How to check the validity of a field(unique property) from template?

2010-01-04 Thread Daniel Roseman
On Jan 4, 8:18 am, NMarcu  wrote:
> Hello all,
>
>     I want to check the fields from web interface before those to be
> added in db. If one field already exist to get a message like:
> "Already exist". I want to not perform the add action, if all fields
> are not validated.

This isn't something that you do in the template. It should happen in
the view.
--
DR.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




How to check the validity of a field(unique property) from template?

2010-01-04 Thread NMarcu
Hello all,

I want to check the fields from web interface before those to be
added in db. If one field already exist to get a message like:
"Already exist". I want to not perform the add action, if all fields
are not validated.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.