In regards to http://code.djangoproject.com/ticket/5050, Malcolm said: > This needs some django-dev discussion.[...] > I also feel a bit suspicious about the design. Both Form and BaseForm end up > with the same root metaclass (because DeclarativeFieldsMetaclass inherits > from BaseFieldsMetaclass). I don't have a concrete reason why I don't like > that yet, but it smells funny.
I'm not sure why this smells so funny to you. They both need to be able to inherit base_fields, so why shouldn't they have the same root metaclass? All Form does is do some magic on the top, so that bit of magic has been separated out to a subclass of the BaseFieldsMetaclass Here's another bug (I believe) it should solve http://code.djangoproject.com/ticket/4239. > I can appreciate that mixins to introduce common fields would be nice, but > the implementation is fiddly. If the goal is to shoehorn more tricks into > form_for_*, I'm going to be a hard sell. Granted, my choice of a test wasn't best. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
