diff options
Diffstat (limited to 'tests/app_cache/models.py')
| -rw-r--r-- | tests/app_cache/models.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/app_cache/models.py b/tests/app_cache/models.py new file mode 100644 index 0000000000..1b4d33c2f9 --- /dev/null +++ b/tests/app_cache/models.py @@ -0,0 +1,17 @@ +from django.db import models +from django.db.models.loading import BaseAppCache + +# We're testing app cache presence on load, so this is handy. + +new_app_cache = BaseAppCache() + + +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 |
