mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[2.2.x] Refs #20122 -- Corrected documentation of pluralize template filter.
Backport of e3968df527 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							2166fe337e
						
					
				
				
					commit
					bf9e0e342d
				
			| @@ -851,8 +851,8 @@ def filesizeformat(bytes_): | ||||
| @register.filter(is_safe=False) | ||||
| def pluralize(value, arg='s'): | ||||
|     """ | ||||
|     Return a plural suffix if the value is not 1. By default, use 's' as the | ||||
|     suffix: | ||||
|     Return a plural suffix if the value is not 1, '1', or an object of | ||||
|     length 1. By default, use 's' as the suffix: | ||||
|  | ||||
|     * If value is 0, vote{{ value|pluralize }} display "votes". | ||||
|     * If value is 1, vote{{ value|pluralize }} display "vote". | ||||
|   | ||||
		Reference in New Issue
	
	Block a user