Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_utils/models.py
blob: 85a1031c027bb72d6feeb0a3cdf6ff2f66b52bab (plain)
1
2
3
4
5
6
7
8
9
from django.db import models
from django.utils.encoding import python_2_unicode_compatible

@python_2_unicode_compatible
class Person(models.Model):
    name = models.CharField(max_length=100)

    def __str__(self):
        return self.name