Opened 7 weeks ago
Closed 7 weeks ago
#36616 closed New feature (fixed)
Add DatabaseOperations.adapt_durationfield_value() hook
| Reported by: | Tim Graham | Owned by: | Tim Graham |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The MongoDB backend has to monkeypatch DurationField.get_db_prep_value() to adapt the value sent to the database.
Following the pattern of other fields, a DatabaseOperations.adapt_durationfield_value() hook could be added to remedy this.
Change History (4)
comment:1 by , 7 weeks ago
| Has patch: | set |
|---|
comment:2 by , 7 weeks ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 7 weeks ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
PR