mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Described Article-Reporter relationship in many-to-one topic.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							6220c445c4
						
					
				
				
					commit
					8e93fc561e
				
			| @@ -2,7 +2,10 @@ | ||||
| Many-to-one relationships | ||||
| ========================= | ||||
|  | ||||
| To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`:: | ||||
| To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`. | ||||
|  | ||||
| In this example, a ``Reporter`` can be associated with many ``Article`` | ||||
| objects, but an ``Article`` can only have one ``Reporter`` object:: | ||||
|  | ||||
|     from django.db import models | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user