blob: 4c6ee0d19a739057875e0bd85f9076b534de95fa (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|