1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django import forms
5 from django.forms.utils import flatatt
6 from django.utils.html import format_html
9 class HeaderWidget(forms.widgets.Widget):
10 def render(self, name, value, attrs=None, renderer=None):
11 attrs.update(self.attrs)
12 return format_html('<a{0}></a>', flatatt(attrs))