mirror of
				https://github.com/django/django.git
				synced 2025-11-04 13:39:16 +00:00 
			
		
		
		
	Fixed #11628 -- Corrected the tutorial, removing instructions to update the year where that isn't required. Thanks to tommstein for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									b8b9411ffc
								
							
						
					
					
						commit
						77c64c69cf
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -643,8 +643,7 @@ Save these changes and start a new Python interactive shell by running
 | 
				
			||||||
    >>> Poll.objects.filter(question__startswith='What')
 | 
					    >>> Poll.objects.filter(question__startswith='What')
 | 
				
			||||||
    [<Poll: What's up?>]
 | 
					    [<Poll: What's up?>]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Get the poll whose year is 2007. Of course, if you're going through this
 | 
					    # Get the poll whose year is 2007.
 | 
				
			||||||
    # tutorial in another year, change as appropriate.
 | 
					 | 
				
			||||||
    >>> Poll.objects.get(pub_date__year=2007)
 | 
					    >>> Poll.objects.get(pub_date__year=2007)
 | 
				
			||||||
    <Poll: What's up?>
 | 
					    <Poll: What's up?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue