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