mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Negligible style fix in docs.
This commit is contained in:
		
							parent
							
								
									90b86291d0
								
							
						
					
					
						commit
						5c81e9de0f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -920,7 +920,7 @@ Things get more complicated if you use inheritance. Consider a subclass of
 | 
			
		|||
    class ThemeBlog(Blog):
 | 
			
		||||
        theme = models.CharField(max_length=200)
 | 
			
		||||
 | 
			
		||||
    django_blog = ThemeBlog(name='Django', tagline='Django is easy', theme = 'python')
 | 
			
		||||
    django_blog = ThemeBlog(name='Django', tagline='Django is easy', theme='python')
 | 
			
		||||
    django_blog.save() # django_blog.pk == 3
 | 
			
		||||
 | 
			
		||||
Due to how inheritance works, you have to set both ``pk`` and ``id`` to None::
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue