From 8344ed0c1a96ebc33bbf9bb39881fa2b469afb0d Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sat, 18 May 2019 20:53:56 +0200 Subject: [PATCH] Debug MonthYearWidget (renderer now required argument) --- common/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/forms.py b/common/forms.py index 5ec561a7a..28bc6f68d 100644 --- a/common/forms.py +++ b/common/forms.py @@ -52,7 +52,7 @@ class MonthYearWidget(Widget): def sqeeze_form_group(self, html, width=6): return '<div class="form-group col-md-{width}">{html}</div>'.format(width=width, html=html) - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, renderer=None): try: year_val, month_val = value.year, value.month except AttributeError: -- GitLab