mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
magic-removal: removed redundant pointless method call.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7662520667
commit
b19eef14ed
@ -47,8 +47,6 @@ def get_model(app_label, model_name):
|
|||||||
Returns the model matching the given app_label and case-insensitive model_name.
|
Returns the model matching the given app_label and case-insensitive model_name.
|
||||||
Returns None if no model is found.
|
Returns None if no model is found.
|
||||||
"""
|
"""
|
||||||
get_apps() # initialise
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
model_dict = _app_models[app_label]
|
model_dict = _app_models[app_label]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user