Some archeology.
[edumed.git] / contact / widgets.py
1 # -*- coding: utf-8 -*-
2 from django import forms
3 from django.forms.util import flatatt
4 from django.utils.html import format_html
5
6
7 class HeaderWidget(forms.widgets.Widget):
8     def render(self, name, value, attrs=None):
9         attrs.update(self.attrs)
10         return format_html('<a{0}></a>', flatatt(attrs))