mirror of
https://github.com/django/django.git
synced 2025-07-30 08:35:23 +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:
parent
fda8a9a390
commit
6bdaef26ec
8 changed files with 67 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue