mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +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
17
tests/apps/models.py
Normal file
17
tests/apps/models.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from django.apps.registry import Apps
|
||||
from django.db import models
|
||||
|
||||
# We're testing app registry presence on load, so this is handy.
|
||||
|
||||
new_apps = Apps()
|
||||
|
||||
|
||||
class TotallyNormal(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
|
||||
class SoAlternative(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
class Meta:
|
||||
apps = new_apps
|
||||
Loading…
Add table
Add a link
Reference in a new issue