summaryrefslogtreecommitdiff
path: root/tests/regressiontests/mongodb/models.py
blob: e07e8f191cd6935cb9253330a255461d07839490 (plain)
1
2
3
4
5
6
7
8
9
10
from django.db import models


class Artist(models.Model):
    id = models.NativeAutoField(primary_key=True)
    name = models.CharField(max_length=255)
    good = models.BooleanField()
    
    def __unicode__(self):
        return self.name