Making SQL management commands migration aware.

This commit is contained in:
Víðir Valberg Guðmundsson 2014-05-29 23:03:10 +02:00
parent 62f9508ade
commit cb9c9a7b58
7 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,10 @@
from django.db import models
class Comment(models.Model):
pass
class Book(models.Model):
title = models.CharField(max_length=100, db_index=True)
comments = models.ManyToManyField(Comment)