From 24ed82f05480f8661bd300da76fa587d0adbb0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Wed, 27 Oct 2021 15:29:23 +0200 Subject: [PATCH] Tweak FourDigitYearConverter. Fixes SCIPOST-1B4 --- scipost_django/common/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost_django/common/converters.py b/scipost_django/common/converters.py index 76a8a94c2..5dddfd086 100644 --- a/scipost_django/common/converters.py +++ b/scipost_django/common/converters.py @@ -16,7 +16,7 @@ class FourDigitYearConverter: return int(value) def to_url(self, value): - return '%04d' % value + return '%04d' % int(value) class TwoDigitMonthConverter: -- GitLab