#30631: Prefixing Q Objects.
-------------------------------------+-------------------------------------
Reporter: efficiosoft | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: prefix q objects | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* version: 2.2 => master
* resolution: => wontfix
Comment:
Thanks for this proposition. It is interesting idea but I don't see many
use cases and to be honest it would be confusing to me to use, e.g.:
{{{
Q(Q(field__startswith='x') |
Q(other_field__startswith='y')).prefix('related_field') &
Q(base_field__gte=78)
}}}
instead of
{{{
Q(Q(related_field__field__startswith='x') |
Q(related_field__other_field__startswith='y')) & Q(base_field__gte=78)
}}}
Please write to the DevelopersMailingList if you want other opinions, we
can re-open this ticket if we reach a consensus on the mailing list.
--
Ticket URL: <https://code.djangoproject.com/ticket/30631#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.5838b441f2efa507568995e81599e349%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.