834 | | def __init__(self, attrs=None, date_format=None, time_format=None): |
835 | | widgets = (DateInput(attrs=attrs, format=date_format), |
836 | | TimeInput(attrs=attrs, format=time_format)) |
| 834 | def __init__(self, attrs=None, date_attrs=None, time_attrs=None, date_format=None, time_format=None): |
| 835 | if attrs: |
| 836 | if date_attrs: |
| 837 | date_attrs.update(attrs) |
| 838 | else: |
| 839 | date_attrs = attrs |
| 840 | if time_attrs: |
| 841 | time_attrs.update(attrs) |
| 842 | else: |
| 843 | time_attrs = attrs |
| 844 | widgets = (DateInput(attrs=date_attrs, format=date_format), |
| 845 | TimeInput(attrs=time_attrs, format=time_format)) |