#30409: E012 is raised when ForeignKey is used by "_id" in an Index.
--------------------------------------+------------------------------------
     Reporter:  James Cheese          |                    Owner:  zeynel
         Type:  Cleanup/optimization  |                   Status:  assigned
    Component:  Core (System checks)  |                  Version:  2.2
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by zeynel):

 * status:  new => assigned
 * owner:  nobody => zeynel


Comment:

 I too agree that we should allow `.attname` usage in `index_together`,
 `unique_together ` and `indexes`, since it is allowed to use `.attname` in
 other places such as `order_with_respect_to`, `ordering`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30409#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/064.2e1be97a8c2ddc559d8ab51dbdbf8874%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to