On Thu, 2008-02-14 at 10:17 -0800, [EMAIL PROTECTED] wrote:
> Is there a good way to sub-class a form that subclasses ModelForm? For
> example, I have two forms that use the same field but one requires
> certain fields to be required and the other doesn't.
> 
> Am I right to sub-class the first form or is there a better way to do
> this?

Subclassing would seem to be the right answer here. Then you just add
the extra validation (clean_FOO) functions to the child class. What's
your concern with this approach (beyond the fact that it may not have
entirely worked up until a couple of hours ago)?

Malcolm

-- 
On the other hand, you have different fingers. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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