def checks_existence(model):
 def decorated(func):
  '\n        Decorator for the existence function.\n        '
  _MODEL_EXISTS[model] = func
  return func
 return decorated

def checks_existence ( model ) : def decorated ( func ) : _MODEL_EXISTS [ model ] = func return func return decorated
register a model-specific existence check function .