mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.6.x] Fixed #22113 -- changed object_name to model_name in CBV docs.
Thanks to trac user nikunj.sg for the report.
Backport of b887408486 from master.
			
			
This commit is contained in:
		
				
					committed by
					
						 Baptiste Mispelon
						Baptiste Mispelon
					
				
			
			
				
	
			
			
			
						parent
						
							a36513c2b4
						
					
				
				
					commit
					79cc1fa58d
				
			| @@ -119,7 +119,7 @@ overriding | ||||
| :meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names()` | ||||
| as discussed above. It actually provides a fairly sophisticated set of options, | ||||
| but the main one that most people are going to use is | ||||
| ``<app_label>/<object_name>_detail.html``. The ``_detail`` part can be changed | ||||
| ``<app_label>/<model_name>_detail.html``. The ``_detail`` part can be changed | ||||
| by setting | ||||
| :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix` | ||||
| on a subclass to something else. (For instance, the :doc:`generic edit | ||||
| @@ -165,7 +165,7 @@ as with :class:`~django.views.generic.detail.SingleObjectTemplateResponseMixin` | ||||
| above, this overrides ``get_template_names()`` to provide :meth:`a range of | ||||
| options <django.views.generic.list.MultipleObjectTemplateResponseMixin>`, | ||||
| with the most commonly-used being | ||||
| ``<app_label>/<object_name>_list.html``, with the ``_list`` part again | ||||
| ``<app_label>/<model_name>_list.html``, with the ``_list`` part again | ||||
| being taken from the | ||||
| :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix` | ||||
| attribute. (The date based generic views use suffixes such as ``_archive``, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user