I don't have much experience with sub-classing forms, but I suspect
`del self.fields[a]` should do the trick. Let us know!

- whiteinge

On Jul 15, 7:04 am, Eratothene <[EMAIL PROTECTED]> wrote:
> Fixed examples mistakes:
>
> class A(forms.Form)
>   a = field
>   b = field
>
> class B(A)
>   del a # Is there  working equivalent for this?
>   c = field
>
> Hence, class B inherited only a field b, but not a.


--~--~---------~--~----~------------~-------~--~----~
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