Returns an instance of the supplied model - if the input is actually an instance of a model, the same instance will be passed in - otherwise, a new instance will be created.
Parameters: |
|
---|
kwargs will either be passed into the new model constructor or applied as attributes to an already-existing model object.
Returns: | An instance of the request model type |
---|---|
Raises ValueError: | |
if the model is not a subclass of the baseclass |