I'm agree with you, but this example is just for demonstration purposes,
but concerning the proposition, we really need something to reuse our
model definitions into forms without rewrite(DRY), since that a form
field, in many cases, has the same validation rules in both, back end
and front end.

On Fri, 2007-11-09 at 10:42 -0500, Marty Alchin wrote: 
> On Nov 9, 2007 10:07 AM, Smel <[EMAIL PROTECTED]> wrote:
> > PS : 
> > http://smelaatifi.blogspot.com/2007/08/declarative-forms-django-newforms.html
> 
> I'd say I'm -1 on including admin-style field declarations to forms.
> I'm of the mind that, if you need that level of design on a custom
> form, just write a template to handle it. Forms seem to me to be more
> about handling the input than defining the output. Sure, they have
> some convenience methods for that, but if we start trying to get those
> to do everything, it's form_for_model all over again. Writing
> templates is easy enough, I think.
> 
> -Gul
> 
> > 


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

Reply via email to