Debian Codegraph @

tests/apps/models.py

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