mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +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
|
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||
import datetime
|
||||
import unittest
|
||||
|
||||
from django.apps.cache import AppCache
|
||||
from django.apps.registry import Apps
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import models
|
||||
from django.test import TestCase
|
||||
|
@ -58,7 +58,7 @@ class GetUniqueCheckTests(unittest.TestCase):
|
|||
|
||||
Meta = type(str('Meta'), (), {
|
||||
'unique_together': unique_together,
|
||||
'app_cache': AppCache()
|
||||
'apps': Apps()
|
||||
})
|
||||
|
||||
checks, _ = M()._get_unique_checks()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue