mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.
Backport of 22c6497f99 from master
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.db import models
 | |
| 
 | |
| class Book(models.Model):
 | |
|     title = models.CharField(max_length=250)
 | |
|     is_published = models.BooleanField(default=False)
 | |
| 
 | |
| class BlogPost(models.Model):
 | |
|     title = models.CharField(max_length=250)
 | |
|     is_published = models.BooleanField(default=False)
 |