mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user