Is there a good reason why you can’t add custom attributes to the inner Meta class of a Django model? The only one i can think of is to catch misconfigurations.
This thread shows how it can be worked around, but i’m wondering if there are any other reasons for this restriction.
Options, the class that processesMeta, and actually adds the_metaattribute to the model, runs through the attributes ofMetain a loop and usessetattron itself to transfer the data. That process would fail if there’s an attribute onMetathat doesn’t exist onOptions.Now, there might be other reasons, but that’s the only one I can glean from the source.