#28072: Allow QuerySet.annotate() to use the name of an exisiting field
-------------------------------------+-------------------------------------
Reporter: Marcin Nowak | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Alexander3):
I'm interested, I sometimes need things like: `qs =
qs.annotate(sales=F('sales') * F("price"))` and for me it's only readonly
usecase.
I can work around it with `qs.values().annotate()` maybe this is more
clean approach.
--
Ticket URL: <https://code.djangoproject.com/ticket/28072#comment:6>
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/010701828bbef9f1-12203d5a-3dfc-4ff8-9723-db505bb77c61-000000%40eu-central-1.amazonses.com.