1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Deprecated the app argument of apps.get_models.

Use app_config.get_models() instead.
This commit is contained in:
Aymeric Augustin
2013-12-29 21:47:55 +01:00
parent e5bcd1d455
commit 34a215d506
5 changed files with 35 additions and 61 deletions

View File

@@ -79,6 +79,3 @@ class GetModelsTest(TestCase):
self.assertNotIn(
"NotInstalledModel",
[m.__name__ for m in apps.get_models()])
def test_get_models_with_app_label_only_returns_installed_models(self):
self.assertEqual(apps.get_models(self.not_installed_module), [])