#28107: Can't perform annotation on related table when relation between tables
not
on primary key
-------------------------------------+-------------------------------------
Reporter: powderflask | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Normal | Resolution:
Keywords: QuerySet.extra | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by powderflask):
The DB and relations are just nasty to set it all up. I'm pretty sure I
know what's needed to reproduce this -- I'll try to get something simpler
to break in the same way, no sense in you banging your head against the
ArcSDE wall.
BTW - edge case is a very polite term for what this really is... After
writing this up, I decided to sacrifice the extra query to get the
attachment.count() to buy a world of ponies. My code base loves me for it
--
Ticket URL: <https://code.djangoproject.com/ticket/28107#comment:2>
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.fe0692ce58ca679a69949688fa11b85d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.