local changes from server
[prawokultury.git] / contact / widgets.py
diff --git a/contact/widgets.py b/contact/widgets.py
new file mode 100644 (file)
index 0000000..a08e351
--- /dev/null
@@ -0,0 +1,10 @@
+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):
+        return ''
+        attrs.update(self.attrs)
+        return format_html('<div{0}>{1}</div>', flatatt(attrs), unicode(value))
+