#27738: Default index name not set outside of migrations
-------------------------------------+-------------------------------------
     Reporter:  Mads Jensen          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.10
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  db-indexes           |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Markus Holtermann):

 `name` is supposed to be a required argument when you define an index in
 `_meta.indexes`. However, for backwards compatibility reasons with auto-
 generated index names for e.g. `db_index=True` and `index_together` the
 name cannot be set during object creation but needs to be patched in later
 while running migrations.

--
Ticket URL: <https://code.djangoproject.com/ticket/27738#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.ccf8e30b2cce048d564a50bbfd79e8f0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to