#30650: Need QuerySet.extra for a where clause based on on a CharField value in
a
second model
-------------------------------------+-------------------------------------
Reporter: Scott Deerwester | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: needsinfo
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
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* status: new => closed
* resolution: => needsinfo
Comment:
Hello Scott,
Could you elaborate on these ''complicated reasons''?
Given this query could be simply expressed as
`.filter(orig_airport__country='US')` I'm afraid that unless you provide a
bit more details we can't judge whether or not this is a valid request to
keep `.extra(**)` around or introduce a new API.
Please reopen this ticket with more details if you can provide more
details about why `ForeignKey` and it's large number of options (e.g.
`to_field='iata_code'`, `db_constraints=False`) can't be use for your
needs.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/30650#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.1aac6222775caffcf16210c168227da7%40djangoproject.com.