mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.apps.cache import AppCache
|
||||
from django.apps.registry import Apps
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
@ -12,7 +12,7 @@ class UnicodeModel(models.Model):
|
|||
|
||||
class Meta:
|
||||
# Disable auto loading of this model as we load it on our own
|
||||
app_cache = AppCache()
|
||||
apps = Apps()
|
||||
verbose_name = 'úñí©óðé µóðéø'
|
||||
verbose_name_plural = 'úñí©óðé µóðéøß'
|
||||
|
||||
|
@ -32,4 +32,4 @@ class UnserializableModel(models.Model):
|
|||
|
||||
class Meta:
|
||||
# Disable auto loading of this model as we load it on our own
|
||||
app_cache = AppCache()
|
||||
apps = Apps()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue