Opened 4 weeks ago

Closed 3 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 Tim Graham, 4 weeks ago

Has patch: set

comment:2 by Mariusz Felisiak, 3 weeks ago

Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak, 3 weeks ago

Triage Stage: AcceptedReady for checkin

comment:4 by GitHub <noreply@…>, 3 weeks ago

Resolution: fixed
Status: assignedclosed

In 1acb00b:

Fixed #36616 -- Added DatabaseOperations.adapt_durationfield_value().

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