mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	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')
 |