The model class attribute should be a property, as it should never change on runtime. The only issue is I can think of is getattr not working with properties, as I've never tried that. In particular, check out the class ModelManager as it does exactly this.
This issue will serve as an investigation task to check whether it's possible or not to change the model attribute into a property.
The
modelclass attribute should be a property, as it should never change on runtime. The only issue is I can think of isgetattrnot working with properties, as I've never tried that. In particular, check out the classModelManageras it does exactly this.This issue will serve as an investigation task to check whether it's possible or not to change the
modelattribute into a property.