diff options
Diffstat (limited to 'tests/middleware/models.py')
-rw-r--r-- | tests/middleware/models.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/middleware/models.py b/tests/middleware/models.py new file mode 100644 index 0000000000..7088bfc2f3 --- /dev/null +++ b/tests/middleware/models.py @@ -0,0 +1,13 @@ +from django.db import models +from django.utils.encoding import python_2_unicode_compatible + + +@python_2_unicode_compatible +class Band(models.Model): + name = models.CharField(max_length=100) + + class Meta: + ordering = ('name',) + + def __str__(self): + return self.name |