mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.6.x] Fixed #21613 -- Removed a hardcoded input id from the tutorial.
Thanks Bruno Brouard for the report.
Backport of cc2d960274 from master
			
			
This commit is contained in:
		| @@ -33,7 +33,8 @@ A quick rundown: | |||||||
|   ``value`` of each radio button is the associated poll choice's ID. The |   ``value`` of each radio button is the associated poll choice's ID. The | ||||||
|   ``name`` of each radio button is ``"choice"``. That means, when somebody |   ``name`` of each radio button is ``"choice"``. That means, when somebody | ||||||
|   selects one of the radio buttons and submits the form, it'll send the |   selects one of the radio buttons and submits the form, it'll send the | ||||||
|   POST data ``choice=3``. This is the basic concept of HTML forms. |   POST data ``choice=#`` where # is the ID of the selected choice. This is the | ||||||
|  |   basic concept of HTML forms. | ||||||
|  |  | ||||||
| * We set the form's ``action`` to ``{% url 'polls:vote' poll.id %}``, and we | * We set the form's ``action`` to ``{% url 'polls:vote' poll.id %}``, and we | ||||||
|   set ``method="post"``. Using ``method="post"`` (as opposed to |   set ``method="post"``. Using ``method="post"`` (as opposed to | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user