'Validates that the input can be converted to a date. Returns a Python
datetime.date object.'

def to_python(self, value):

    if (value in self.empty_values):
        return None
    if isinstance(value, datetime.datetime):
        return value.date()
    if isinstance(value, datetime.date):
        return value
    return super(DateField, self).to_python(value)
