mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Removed support for syncing apps without migrations per deprecation timeline.
Kept support for creating models without migrations when running tests (especially for Django's test suite).
This commit is contained in:
parent
9704b0a82e
commit
7e8cf74dc7
31 changed files with 29 additions and 626 deletions
|
@ -22,7 +22,7 @@ class ProxyModelInheritanceTests(TransactionTestCase):
|
|||
def test_table_exists(self):
|
||||
with extend_sys_path(os.path.dirname(os.path.abspath(upath(__file__)))):
|
||||
with self.modify_settings(INSTALLED_APPS={'append': ['app1', 'app2']}):
|
||||
call_command('migrate', verbosity=0)
|
||||
call_command('migrate', verbosity=0, run_syncdb=True)
|
||||
from app1.models import ProxyModel
|
||||
from app2.models import NiceModel
|
||||
self.assertEqual(NiceModel.objects.all().count(), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue