terms and conditions field
[prawokultury.git] / contact / fields.py
1 from django import forms
2 from .widgets import HeaderWidget
3
4 class HeaderField(forms.CharField):
5     def __init__(self, required=False, widget=None, *args, **kwargs):
6         if widget is None:
7             widget = HeaderWidget
8         super(HeaderField, self).__init__(required=required, widget=widget, *args, **kwargs)
9