2013-12-24 19:25:17 +08:00
|
|
|
from django.apps.registry import Apps
|
2013-05-09 22:59:26 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2013-12-24 19:25:17 +08:00
|
|
|
# We're testing app registry presence on load, so this is handy.
|
2013-05-09 22:59:26 +08:00
|
|
|
|
2013-12-30 23:03:06 +08:00
|
|
|
new_apps = Apps(['apps'])
|
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:
|
2013-12-24 19:25:17 +08:00
|
|
|
apps = new_apps
|