blob: cd2f22b514b9b8e2cfdcb7cf0d24c87318bfbb86 (
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 Thing(models.Model):
num = models.IntegerField()
def __str__(self):
return "Thing %d" % self.num
|