apps.get_model(app_label, model_name)
Returns the Model
with the given app_label
and model_name
. As a shortcut, this method also accepts a single argument in the form app_label.model_name
. model_name
is case-insensitive.
Raises LookupError
if no such application or model exists. Raises ValueError
when called with a single argument that doesn’t contain exactly one dot.
Please login to continue.