mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
156e2d59cf
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
8 lines
202 B
Python
8 lines
202 B
Python
from django.db import models
|
|
|
|
|
|
class Book(models.Model):
|
|
title = models.CharField(max_length=50)
|
|
author = models.CharField(max_length=50)
|
|
pages = models.IntegerField(db_column='page_count')
|