mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Refs #32339 -- Doc'd BaseFormSet.as_div()
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							f9f0092346
						
					
				
				
					commit
					4038a8df0b
				
			| @@ -892,14 +892,18 @@ Formsets have the following attributes and methods associated with rendering: | ||||
|  | ||||
| .. method:: BaseFormSet.render(template_name=None, context=None, renderer=None) | ||||
|  | ||||
|     The render method is called by ``__str__`` as well as the :meth:`.as_p`, | ||||
|     :meth:`.as_ul`, and :meth:`.as_table` methods. All arguments are optional | ||||
|     and will default to: | ||||
|     The render method is called by ``__str__`` as well as the :meth:`.as_div`, | ||||
|     :meth:`.as_p`, :meth:`.as_ul`, and :meth:`.as_table` methods. All arguments | ||||
|     are optional and will default to: | ||||
|  | ||||
|     * ``template_name``: :attr:`.template_name` | ||||
|     * ``context``: Value returned by :meth:`.get_context` | ||||
|     * ``renderer``: Value returned by :attr:`.renderer` | ||||
|  | ||||
| .. method:: BaseFormSet.as_div() | ||||
|  | ||||
|     Renders the formset with the :attr:`.template_name_div` template. | ||||
|  | ||||
| .. method:: BaseFormSet.as_p() | ||||
|  | ||||
|     Renders the formset with the :attr:`.template_name_p` template. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user