#28107: Can't perform annotation on related table when un-managed model is 
backed
by a DB view
-------------------------------------+-------------------------------------
     Reporter:  powderflask          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  QuerySet.extra       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette <charette.s@…>):

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


Comment:

 In [changeset:"daf2bd3efe53cbfc1c9fd00222b8315708023792" daf2bd3]:
 {{{
 #!CommitTicketReference repository=""
 revision="daf2bd3efe53cbfc1c9fd00222b8315708023792"
 Fixed #28107 -- Disabled grouping of selected primary keys for unmanaged
 models.

 The grouping caused an issue with database views as PostgreSQL's query
 planer
 isn't smart enough to introspect primary keys through views. Django
 doesn't
 support database views but documents that unmanaged models should be used
 to
 query them.

 Thanks powderflask for the detailed report and investigation.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28107#comment:15>
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/069.27182ca06093dfe19db62428763614b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to