diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-11 12:49:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-11 12:49:12 +0100 |
| commit | 4593bc5da115f2e808a803a4ec24104b6c7a6152 (patch) | |
| tree | 261738f18c1d3df140b57596d9dc0bae9ab411ce /django/utils | |
| parent | d16079dd90320141c2024809ba0fce43f0f2cb02 (diff) | |
Refs #33879 -- Fixed plural value deprecation warnings.
Plural value must be an integer.
Regression in 8d67e16493c903adc9d049141028bc0fff43f8c8.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/timesince.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/timesince.py b/django/utils/timesince.py index f582d0e4f2..7a79e55ad9 100644 --- a/django/utils/timesince.py +++ b/django/utils/timesince.py @@ -104,7 +104,7 @@ def timesince(d, now=None, reversed=False, time_strings=None, depth=2): remaining_time = (now - pivot).total_seconds() partials = [years, months] for chunk in TIME_CHUNKS: - count = remaining_time // chunk + count = int(remaining_time // chunk) partials.append(count) remaining_time -= chunk * count |
