mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Deprecated the app argument of apps.get_models.
Use app_config.get_models() instead.
This commit is contained in:
parent
e5bcd1d455
commit
34a215d506
5 changed files with 35 additions and 61 deletions
|
|
@ -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), [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue