Opened 7 years ago
Last modified 7 years ago
#29996 closed New feature
QuerySet.extra using contains, startswith on integerfield — at Initial Version
| Reported by: | Austin Fox | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 2.1 |
| Severity: | Normal | Keywords: | QuerySet.extra |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Reporting my use as requested in docs https://docs.djangoproject.com/en/2.1/ref/models/querysets/#extra
Maybe I'm doing something strange?
Ex.
qs = qs.extra(where=foreignkey_id LIKE %s + '%%', params=[param])
Note:
See TracTickets
for help on using tickets.