On 2008-05-27 05:33:01 -0600, "Russell Keith-Magee" <[EMAIL PROTECTED]> said:
> Is there any particular reason that you can't just add a Meta class to > this class definition, in the same way that a ModelForm works: > > class ArticleFormSet(FormSet) > class Meta: > form = ArticleForm > extra = 2 > can_delete = True > > def clean(self): > raise forms.ValidationError, u'An error occured.' > > I'm guessing InlineFormSet and ModelFormSet will need their own meta > class processing to handle their specific options, but there should be > a lot of common code between them. I made an attempt to normalize the API in 6241 [1]. That is where we decided that it was really complicating things. It may have been in my implementation itself. I am still not opposed to doing some sort of normalization, but at this point not sure how to go about simplifying the implementation. [1]: http://code.djangoproject.com/ticket/6241 -- Brian Rosner http://oebfare.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---