Source

django-mongodb / testproject / testapp / models.py

Full commit
from django.db import models

class CRUDTestModel(models.Model):
    text = models.CharField(max_length=255)

class NoAutoPK_CRUDTestModel(models.Model):
    name = models.IntegerField(primary_key=True)
    text = models.CharField(max_length=255)
    
class Author(models.Model):
    name = models.CharField(max_length=100)

class Article(models.Model):
    title = models.CharField(max_length=200)
    author = models.ForeignKey(Author)

class LargeArticle(models.Model):
    title = models.CharField(max_length=200)
    authors = models.ManyToManyField(Author)