67fc71bab3e56196fbe70c0603d7fbdf1ba72026
[edumed.git] / contact / fields.py
1 # -*- coding: utf-8 -*-
2 from django import forms
3 from .widgets import HeaderWidget
4
5
6 class HeaderField(forms.CharField):
7     def __init__(self, required=False, widget=None, *args, **kwargs):
8         if widget is None:
9             widget = HeaderWidget
10         super(HeaderField, self).__init__(required=required, widget=widget, *args, **kwargs)