This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from ..utils import get_date_format_parts | |
class DateFormatWidget(forms.MultiWidget): | |
""" | |
Widget to allow multiple input for a Python date format (e.g. '%Y-%m-%d') | |
with select choices for the date elements and input for any separator characters. | |
""" |