plus you can supply a super class that the resulting class will
subclass via the form keyword argument...

On 1/16/07, Honza Kr l <[EMAIL PROTECTED]> wrote:
On 1/16/07, jfagnani <[EMAIL PROTECTED]> wrote:
>
> I'm just starting to learn newforms myself, but it looks like
> form_for_model returns a class, so shouldn't you be able to subclass
> it?
>
> I'm not sure how that would work though, since the class doesn't exist
> when defining your subclass, but that's because I'm new to Python too
> :)

the same way the class itself is constructed:
type(name, parent_list, { __dict__} )

>
>
> > >
>


--
Honza Kr l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585



--
Honza Kr l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to