1. Kirill Mavreshko
  2. django-mongodb

Source

django-mongodb / testproject / testapp / models.py

1
2
3
4
5
6
7
8
9
from django.db import models

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

class NoAutoPK_CRUDTestModel(models.Model):
    name = models.CharField(max_length=50, primary_key=True)
    text = models.CharField(max_length=255)