def adapt(self, cls, **kw):
    if issubclass(cls, _DateTimeMixin):
        if self._storage_format:
            kw['storage_format'] = self._storage_format
        if self._reg:
            kw['regexp'] = self._reg
    return super(_DateTimeMixin, self).adapt(cls, **kw)
def adapt(self, cls, **kw):
    if issubclass(cls, _DateTimeMixin):
        if self._storage_format:
            kw['storage_format'] = self._storage_format
        if self._reg:
            kw['regexp'] = self._reg
    return super(_DateTimeMixin, self).adapt(cls, **kw)