mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Renamed AppCache to Apps.
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
This commit is contained in:
parent
e9e522a8e7
commit
1716b7ce5a
92 changed files with 491 additions and 487 deletions
|
@ -203,8 +203,8 @@ class OperationTests(MigrationTestBase):
|
|||
self.assertColumnNotExists("test_adflmm_pony", "stables")
|
||||
# Make sure the M2M field actually works
|
||||
with atomic():
|
||||
new_app_cache = new_state.render()
|
||||
Pony = new_app_cache.get_model("test_adflmm", "Pony")
|
||||
new_apps = new_state.render()
|
||||
Pony = new_apps.get_model("test_adflmm", "Pony")
|
||||
p = Pony.objects.create(pink=False, weight=4.55)
|
||||
p.stables.create()
|
||||
self.assertEqual(p.stables.count(), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue