def __init__(self, *args, **kwargs):
    truncate_microseconds = kwargs.pop('truncate_microseconds', False)
    super(DATETIME, self).__init__(*args, **kwargs)
    if truncate_microseconds:
        assert ('storage_format' not in kwargs), 'You can specify only one of truncate_microseconds or storage_format.'
        assert ('regexp' not in kwargs), 'You can specify only one of truncate_microseconds or regexp.'
        self._storage_format = '%(year)04d-%(month)02d-%(day)02d %(hour)02d:%(minute)02d:%(second)02d'
def __init__(self, *args, **kwargs):
    truncate_microseconds = kwargs.pop('truncate_microseconds', False)
    super(DATETIME, self).__init__(*args, **kwargs)
    if truncate_microseconds:
        assert ('storage_format' not in kwargs), 'You can specify only one of truncate_microseconds or storage_format.'
        assert ('regexp' not in kwargs), 'You can specify only one of truncate_microseconds or regexp.'
        self._storage_format = '%(year)04d-%(month)02d-%(day)02d %(hour)02d:%(minute)02d:%(second)02d'