yeah, making things complicated just for the sake of making things complicated sucks. that said, model forms are one of the most useful parts of django, and they use metaclasses, although for all i know, ModelForm could have been implemented another way.
i only know about that part of the django implementation because i was trying to set up some kind of class inheritance and found that things were behaving strangely. so the conclusion in this case was that the use of metaclass allowed some cleverness in the implementation of ModelForm, but it made it difficult to layer more cleverness on top of ModelForm.
i only know about that part of the django implementation because i was trying to set up some kind of class inheritance and found that things were behaving strangely. so the conclusion in this case was that the use of metaclass allowed some cleverness in the implementation of ModelForm, but it made it difficult to layer more cleverness on top of ModelForm.