Re: class-based generic views and forms

2011-04-25 Thread lingrlongr
A lifesaver you are! Thx DR! On Apr 25, 4:37 pm, Daniel Roseman wrote: > On Monday, April 25, 2011 9:16:18 PM UTC+1, lingrlongr wrote: > > > I have a view that subclasses uses django.views.generic UpdateView. > > In my template, I'm trying to access a form field's required > > property.  For exa

Re: class-based generic views and forms

2011-04-25 Thread Daniel Roseman
On Monday, April 25, 2011 9:16:18 PM UTC+1, lingrlongr wrote: > > I have a view that subclasses uses django.views.generic UpdateView. > In my template, I'm trying to access a form field's required > property. For example: > > {% for field in form %} >{{ field.required }} > {% endfor %} >

class-based generic views and forms

2011-04-25 Thread lingrlongr
I have a view that subclasses uses django.views.generic UpdateView. In my template, I'm trying to access a form field's required property. For example: {% for field in form %} {{ field.required }} {% endfor %} Nothing outputs when the template is rendered. Does the "required" attribute not g

RE: generic views and forms

2006-09-14 Thread Benedict Verheyen
>Cheers,>> It's not totally clear to me why i would want to go the way of >> creating code & using manipulators if all that can be done >> automatically :)>It can indeed be automatically done for an object creation. But what about sending a mail? Or what about a form involving two models? >Or made

Re: generic views and forms

2006-09-14 Thread Guillermo Fernandez Castellanos
Cheers, > It's not totally clear to me why i would want to go the way of creating code > & using manipulators > if all that can be done automatically :) It can indeed be automatically done for an object creation. But what about sending a mail? Or what about a form involving two models? Or made to

generic views and forms

2006-09-14 Thread Benedict Verheyen
Hi,in the "docs forms, fields, and manipulators" documentation,it's stated that you can't have the forms automatically created so you need to createyour own forms.In there there's an example that deals with a view & manipulators and a template. However, if you use "django.views.generic.create_updat