mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #7417 -- Fixed ReST error in do_if() docstring. Thanks, Richard Bell <rbell01824@earthlink.net>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -682,8 +682,10 @@ ifnotequal = register.tag(ifnotequal) | |||||||
| def do_if(parser, token): | def do_if(parser, token): | ||||||
|     """ |     """ | ||||||
|     The ``{% if %}`` tag evaluates a variable, and if that variable is "true" |     The ``{% if %}`` tag evaluates a variable, and if that variable is "true" | ||||||
|     (i.e. exists, is not empty, and is not a false boolean value) the contents |     (i.e., exists, is not empty, and is not a false boolean value), the | ||||||
|     of the block are output:: |     contents of the block are output: | ||||||
|  |  | ||||||
|  |     :: | ||||||
|  |  | ||||||
|         {% if athlete_list %} |         {% if athlete_list %} | ||||||
|             Number of athletes: {{ athlete_list|count }} |             Number of athletes: {{ athlete_list|count }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user