Opened 5 years ago
Closed 5 years ago
#32505 closed New feature (wontfix)
Allow queryset.extra() to specify OR operation
| Reported by: | James Lin | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 2.2 |
| Severity: | Normal | Keywords: | extra, or |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Currently in django Query class, it is using AND as default operation
def add_extra(self, select, select_params, where, params, tables, order_by):
...
if where or params:
self.where.add(ExtraWhere(where, params), AND)
...
We should be able to pass op argument so I can use OR operation
Change History (2)
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 5 years ago
| Component: | Uncategorized → Database layer (models, ORM) |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The documentation for QuerySet.extra() says: