I'm not sure either way on this one. I don't want people to get carries away with Meta, it's not a dumping ground for any old thing you like. That said, for a developer of a third party library which extends the ORM, the inability to extend Meta is very problematic.
I think a balance could be found where strict validation is retained, but third party apps can add to that validation. The difficulty is the API - if would be good if it could be done on a per model basis rather than a global. This should be explicit on behalf of the end user. I'm not sure how this would work though. Marc On 10 Sep 2013 13:04, "Karan Lyons" <[email protected]> wrote: > Hey all, > > I recently opened up a ticket (https://code.djangoproject.com/ticket/21081) > that turns out to be a dupe of https://code.djangoproject.com/ticket/5793, > both in regards to allowing custom attributes in a model's Meta class. > > It was wontfix'd six years ago, the reasoning being that Meta should > really only be for setting options related to Django internals. I'm > personally of the opinion that at this point Meta is considered the place > for *any* options related to a model by developers, and that handling > custom options outside of Meta seems against the general Django coding > style. Currently you can come up with hacks like > https://github.com/karanlyons/django-save-the-change/blob/feature/update-together/save_the_change/mixins.py#L188to > take care of the issue, but this isn't very nice for a number of reasons. > > Do we think this should still be a wontfix, and are there any other > reasons why? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
