I can think of several cases where I'd want a custom field to be able to add an index, and contribute_to_class() is, as you say, the natural place to do it -- it's the hook for everything else fields want to add as part of their setup.
So I'd be +1 on making sure it's possible to add indexes through contribute_to_class(), and figuring out what we need to document/guarantee in terms of API for it. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAL13Cg_uCe1kK22h8rXEssFuL6f7cBTZdU1qubA4xVnevsTryg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
