mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Corrected a markup error in the m2m inline docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									2c609b4019
								
							
						
					
					
						commit
						77abadfa6a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1070,7 +1070,7 @@ Suppose we have the following models::
 | 
				
			||||||
        members = models.ManyToManyField(Person, related_name='groups')
 | 
					        members = models.ManyToManyField(Person, related_name='groups')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you want to display many-to-many relations using an inline, you can do
 | 
					If you want to display many-to-many relations using an inline, you can do
 | 
				
			||||||
so by defining an ``InlineModelAdmin`` object for the relationship.
 | 
					so by defining an ``InlineModelAdmin`` object for the relationship::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class MembershipInline(admin.TabularInline):
 | 
					    class MembershipInline(admin.TabularInline):
 | 
				
			||||||
        model = Group.members.through
 | 
					        model = Group.members.through
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue