mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #15866, #15850 -- Prevented get_model() and get_models() from returning not-installed models (by default). Thanks adsva for report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1023,7 +1023,11 @@ class ManageValidate(AdminScriptTestCase):
|
||||
def test_app_with_import(self):
|
||||
"manage.py validate does not raise errors when an app imports a base class that itself has an abstract base"
|
||||
self.write_settings('settings.py',
|
||||
apps=['admin_scripts.app_with_import', 'django.contrib.comments'],
|
||||
apps=['admin_scripts.app_with_import',
|
||||
'django.contrib.comments',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sites'],
|
||||
sdict={'DEBUG': True})
|
||||
args = ['validate']
|
||||
out, err = self.run_manage(args)
|
||||
|
||||
Reference in New Issue
Block a user