﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21702	"Consider providing apps.get_model(""app_label.ModelName"")"	Aymeric Augustin	nobody	"Basically:

{{{
--- a/django/apps/registry.py
+++ b/django/apps/registry.py
@@ -224,16 +224,21 @@ class Apps(object):
             )
         return model_list
 
-    def get_model(self, app_label, model_name):
+    def get_model(self, app_label, model_name=None):
         """"""
         Returns the model matching the given app_label and model_name.
 
+        As a shortcut, this function also accepts a single argument
+        <app_label>.<model_name>.
+
         model_name is case-insensitive.
 
         Raises LookupError if no application exists with this label, or no
         model exists with this name in the application.
         """"""
         self.populate_models()
+        if model_name is None:
+            app_label, _, model_name = app_label.partition('.')
         return self.get_app_config(app_label).get_model(model_name.lower())
 
     def register_model(self, app_label, model):
}}}

This would avoid repeating the splitting logic in many call sites.

Same question for get_registered_model."	Cleanup/optimization	closed	Core (Other)	dev	Normal	fixed	app-loading		Ready for checkin	1	0	0	0	0	0
