Opened 2 hours ago

Last modified 91 minutes ago

#36616 assigned New feature

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: Unreviewed
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 (1)

comment:1 by Tim Graham, 91 minutes ago

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