Fixed #25356 -- Removed default_app_config from startapp template.

Also discouraged its use outside the intended use case.
This commit is contained in:
Tim Graham 2015-09-07 09:28:15 -04:00
parent 29d52583e7
commit 862de0b254
6 changed files with 8 additions and 12 deletions

View file

@ -599,10 +599,6 @@ class DjangoAdminSettingsDirectory(AdminScriptTestCase):
content = f.read()
self.assertIn("class SettingsTestConfig(AppConfig)", content)
self.assertIn("name = 'settings_test'", content)
with open(os.path.join(app_path, '__init__.py'), 'r') as f:
content = f.read()
expected_content = "default_app_config = 'settings_test.apps.SettingsTestConfig'"
self.assertIn(expected_content, content)
if not PY3:
with open(os.path.join(app_path, 'models.py'), 'r') as fp:
content = fp.read()