summaryrefslogtreecommitdiff
path: root/tests/apps/models.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 12:25:17 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 12:25:17 +0100
commit1716b7ce5a02b2a77188dfea2d41e25dfa58821c (patch)
treef3422c0d6725f45756a3b9deb32406d319b8a72e /tests/apps/models.py
parente9e522a8e7455900a775678e5d6bc518a289b8d1 (diff)
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().
Diffstat (limited to 'tests/apps/models.py')
-rw-r--r--tests/apps/models.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/apps/models.py b/tests/apps/models.py
new file mode 100644
index 0000000000..c3f764a70b
--- /dev/null
+++ b/tests/apps/models.py
@@ -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