mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Merge pull request #271 from morty/patch-1
Fixed doc comment in django.contrib.admin example to match the code
This commit is contained in:
		
						commit
						6086f7356d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -623,7 +623,7 @@ subclass::
 | 
				
			||||||
                   provided in the query string and retrievable via
 | 
					                   provided in the query string and retrievable via
 | 
				
			||||||
                   `self.value()`.
 | 
					                   `self.value()`.
 | 
				
			||||||
                   """
 | 
					                   """
 | 
				
			||||||
                   # Compare the requested value (either '80s' or 'other')
 | 
					                   # Compare the requested value (either '80s' or '90s')
 | 
				
			||||||
                   # to decide how to filter the queryset.
 | 
					                   # to decide how to filter the queryset.
 | 
				
			||||||
                   if self.value() == '80s':
 | 
					                   if self.value() == '80s':
 | 
				
			||||||
                       return queryset.filter(birthday__gte=date(1980, 1, 1),
 | 
					                       return queryset.filter(birthday__gte=date(1980, 1, 1),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue