The method was introduced in 57554442fe3e209c135e15dda4ea45123e579e58.
--
Ticket URL: <https://code.djangoproject.com/ticket/33214>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33214#comment:1>
* owner: nobody => Manaia Junior
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33214#comment:2>
Comment (by Mariusz Felisiak):
For this ticket, we need to add a stub method
`format_for_duration_arithmetic(self, sql)` to the
[https://github.com/django/django/blob/9231526af4b9825583b0d3cb943f88109fd30551/django/db/backends/base/operations.py#L14
BaseDatabaseOperations] that would raise `NotImplementedError` e.g.
{{{#!python
raise NotImplementedError('subclasses of BaseDatabaseOperations may
require a format_for_duration_arithmetic() method.')
}}}
Test for such methods are in
[https://github.com/django/django/blob/9231526af4b9825583b0d3cb943f88109fd30551/tests/backends/base/test_operations.py#L88-L118
tests/backends/base/test_operations.py].
--
Ticket URL: <https://code.djangoproject.com/ticket/33214#comment:3>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/15016 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33214#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"551c997feaaa293987af8b05efc3634b93305fac" 551c997]:
{{{
#!CommitTicketReference repository=""
revision="551c997feaaa293987af8b05efc3634b93305fac"
Fixed #33214 -- Added
BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33214#comment:5>