models.py 405 B

1234567891011121314151617181920
  1. from __future__ import unicode_literals
  2. from django.apps.registry import Apps
  3. from django.db import models
  4. # We're testing app registry presence on load, so this is handy.
  5. new_apps = Apps(['apps'])
  6. class TotallyNormal(models.Model):
  7. name = models.CharField(max_length=255)
  8. class SoAlternative(models.Model):
  9. name = models.CharField(max_length=255)
  10. class Meta:
  11. apps = new_apps