738ae048b2c5c71c8a1063d5b6e0d7d444096a09
[prawokultury.git] / contact / widgets.py
1 from django import forms
2 from django.forms.util import flatatt
3 from django.utils.html import format_html
4
5 class HeaderWidget(forms.widgets.Widget):
6     def render(self, name, value, attrs=None):
7         attrs.update(self.attrs)
8         return format_html('<a{0}></a>', flatatt(attrs))
9         # return format_html('<div{0}>{1}</div>', flatatt(attrs), unicode(value))