return [data[0], data[1], datetime.datetime(*time.strptime(data[2],
    '%Y-%m-%d %H:%M:%S')[0:6])]
return [None, None, None]

def format_output(self, rendered_widgets):
    return '\n'.join(rendered_widgets)


class ComplexField(forms.MultiValueField):

    def __init__(self, required=True, widget=None, label=None, initial=None):
        fields = forms.CharField(), forms.MultipleChoiceField(choices=(('J',
            'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo'))
            ), forms.SplitDateTimeField()
super(ComplexField, self).__init__(fields, required, widget, label, initial)

def compress(self, data_list):
    if data_list:
        return '%s,%s,%s' % (data_list[0], ''.join(data_list[1]), data_list[2])
return None
Creating a custom Django form field that uses two <input>s