def writes_models(model):
 def decorated(func):
  '\n        Decorator for the creation function.\n        '
  _WRITE_MODEL[model] = func
  return func
 return decorated

def writes_models ( model ) : def decorated ( func ) : _WRITE_MODEL [ model ] = func return func return decorated
register a model-specific create and update function .