SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 8344ed0c authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug MonthYearWidget (renderer now required argument)

parent d89aeead
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment