X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/contact/widgets.py?ds=inline diff --git a/src/contact/widgets.py b/src/contact/widgets.py new file mode 100644 index 0000000..ddcf3cf --- /dev/null +++ b/src/contact/widgets.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +from django import forms +from django.forms.util import flatatt +from django.utils.html import format_html + + +class HeaderWidget(forms.widgets.Widget): + def render(self, name, value, attrs=None): + attrs.update(self.attrs) + return format_html('', flatatt(attrs))