#33242: Support annotating related fields with QuerySet.annotate().
-------------------------------------+-------------------------------------
     Reporter:  rossm6               |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  orm                  |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Thanks for the proposition. `QuerySet.annotate()`annotates each object in
 the `QuerySet` with the expression, so you can use
 `.annotate(room_something=...)` and refer it in the main object. IMO
 adding support for annotating related-objects would make the API
 unnecessarily complicated without any clear benefits.

 You can raise the idea on the DevelopersMailingList to reach a wider
 audience and see what other think.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33242#comment:1>
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/064.0dcec534daa861653e38286b551c2335%40djangoproject.com.

Reply via email to