Opened 4 years ago

Last modified 4 years ago

#32505 closed New feature

Allow queryset.extra() to specify OR operation — at Initial Version

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

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top