summaryrefslogtreecommitdiff
path: root/django/db/models/functions/mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/functions/mixins.py')
-rw-r--r--django/db/models/functions/mixins.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/models/functions/mixins.py b/django/db/models/functions/mixins.py
index 636340f015..00cfd1bc01 100644
--- a/django/db/models/functions/mixins.py
+++ b/django/db/models/functions/mixins.py
@@ -32,7 +32,9 @@ class FixDurationInputMixin:
if self.output_field.get_internal_type() == 'DurationField':
expression = self.get_source_expressions()[0]
options = self._get_repr_options()
- from django.db.backends.oracle.functions import IntervalToSeconds, SecondsToInterval
+ from django.db.backends.oracle.functions import (
+ IntervalToSeconds, SecondsToInterval,
+ )
return compiler.compile(
SecondsToInterval(self.__class__(IntervalToSeconds(expression), **options))
)