On Sun, Aug 5, 2012 at 5:40 PM, Melvyn Sopacua <m.r.sopa...@gmail.com>wrote:
> On 5-8-2012 20:16, Nicolas Emiliani wrote: > > Hi, I've been struggling with dynamic forms and until now I'm loosing the > > battle :S > > > So, now I want the HomeAdmin to render all this stuff into the from, but > > when I try to > > add this fields into the fieldset attribute and load the page it fails > > saying. > > Sorry to say this, but you have to go back to the drawing board. You > cannot add random fields to fieldset. They *have* to be models.Field > classes of the model attached the ModelAdmin so that the values get > cleaned properly. > If you want extra fields for the form, you do this via inlines for > related objects or you subclass a ModelForm and set the form attribute > of the ModelAdmin. > > Ups. Well, thanks anyways. Since my drawing board is full of drawings, and they are not happy faces, I'll create another post with what I want to accomplish and maybe you can suggest something. > -- > Melvyn Sopacua > > -- > 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. > > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- 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.