2013-12-18 00:47:19 +08:00
|
|
|
from django.core.apps.cache import AppCache
|
2013-05-09 22:59:26 +08:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
# We're testing app cache presence on load, so this is handy.
|
|
|
|
|
2013-12-18 00:47:19 +08:00
|
|
|
new_app_cache = AppCache()
|
2013-05-09 22:59:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
class TotallyNormal(models.Model):
|
|
|
|
name = models.CharField(max_length=255)
|
|
|
|
|
|
|
|
|
|
|
|
class SoAlternative(models.Model):
|
|
|
|
name = models.CharField(max_length=255)
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
app_cache = new_app_cache
|