#27236: Deprecate Model.Meta.index_together in favour of Model.Meta.indexes
-------------------------------------+-------------------------------------
     Reporter:  Akshesh Doshi        |                    Owner:  David
         Type:                       |  Wobrock
  Cleanup/optimization               |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:  index_together       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Collin Anderson):

 I'm personally always in favor of keeping things fully functional forever,
 to reduce the amount of work that developers need to do, as long as it's
 easy enough to maintain ( https://groups.google.com/g/django-
 developers/c/zImXMKzWN4A/m/4SNu7MyFAQAJ ). If so, then there probably
 doesn't need to be a warning message at all, but certainly not for applied
 migrations, and no need for a deprecation timeline. Just discourage its
 use and move on. Again, as long as it's easy enough to maintain long-term.

 If functionality is getting removed or no-op'd in the future, then I'd
 suggest that yes there should be a warning (not just for un-applied
 migrations), and in my opinion the warning message should suggest an
 alternative or at least link to docs about this deprecation and how to fix
 it (AddIndex/RemoveIndex or something?) And, ideally it would be a type of
 change that could be automatically applied using django-codemod or django-
 upgrade, but that might be asking for too much.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27236#comment:37>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018218325fcc-a2c0f352-5b14-4418-a300-7800f4f5f6da-000000%40eu-central-1.amazonses.com.

Reply via email to