#25569: Add a friendly error report when using select_related() on a reverse
relation
-------------------------------------+-------------------------------------
     Reporter:  Shai Berger          |                    Owner:  Vincent
                                     |  Perez
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Vincent Perez):

 I think the message in its current state is confusing, specially when you
 are upgrading from a Django version prior to 1.8, where the select_related
 used to fail silently.  IMHO, the fix as I suggested in my previous
 comment is simple enough to be worth it.

 Btw, Aymeric Augustin found this fix worthy enough to even consider
 backporting it in 1.8 (see comment above), so that makes at least 3 of us
 thinking this fix is worth it :)

--
Ticket URL: <https://code.djangoproject.com/ticket/25569#comment:14>
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/063.9e8df805f4f3d16d295fcd11049aab94%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to