X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/98b2c09ef1f1c8288a31517f61423264c6b3291c..fc0b706f8c7eb67531df0a2acd972412e47c7010:/src/contact/widgets.py?ds=sidebyside diff --git a/src/contact/widgets.py b/src/contact/widgets.py index 785e019fd..fd2a49e36 100644 --- a/src/contact/widgets.py +++ b/src/contact/widgets.py @@ -1,13 +1,12 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django import forms -from django.forms.util import flatatt +from django.forms.utils import flatatt from django.utils.html import format_html class HeaderWidget(forms.widgets.Widget): - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, renderer=None): attrs.update(self.attrs) return format_html('', flatatt(attrs))