def validate(self, value):
    value = super(DateTimeProperty, self).validate(value)
    if value and not isinstance(value, self.data_type):
      raise BadValueError('Property %s must be a %s' %
                          (self.name, self.data_type.__name__))
    return value
Decorator for wrapping a webapp2.RequestHandler to work with
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/DateTimeProperty.validate--crossover with--dataset/ETHPy150Open potatolondon/djangae/djangae/utils.py/djangae_webapp