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:
@@ -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), [])
|
||||
|
||||
Reference in New Issue
Block a user