Shouldn't validation be defined in the modell instead of the forms?

Suppose I've a Model wich has some restrictions on the value a field can 
get, and then I've a custom form for this model for the admin interface 
and two other forms for the public interface.

Does this mean that I've to define my validation rules three times?

What is the logic behind  this?

Where is the correct place to code these custom validation rules in this 
scenario?

Should I post this message to django-devel?

What is the meaning of life? (well, you can ignore this last one :-) )

Thank you very much.


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to