mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Removed self from method signatures in docs.
Backport of 757aefc12b from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							8d5bccfe76
						
					
				
				
					commit
					d8039dfb0a
				
			| @@ -720,7 +720,7 @@ calling the appropriate methods on the wrapped expression. | ||||
|               clone.expression = self.expression.relabeled_clone(change_map) | ||||
|               return clone | ||||
|  | ||||
|     .. method:: convert_value(self, value, expression, connection, context) | ||||
|     .. method:: convert_value(value, expression, connection, context) | ||||
|  | ||||
|         A hook allowing the expression to coerce ``value`` into a more | ||||
|         appropriate type. | ||||
|   | ||||
| @@ -79,7 +79,7 @@ field references, aggregates, and ``Transform`` are examples that follow this | ||||
| API. A class is said to follow the query expression API when it implements the | ||||
| following methods: | ||||
|  | ||||
| .. method:: as_sql(self, compiler, connection) | ||||
| .. method:: as_sql(compiler, connection) | ||||
|  | ||||
|     Responsible for producing the query string and parameters for the expression. | ||||
|     The ``compiler`` is an ``SQLCompiler`` object, which has a ``compile()`` | ||||
| @@ -95,7 +95,7 @@ following methods: | ||||
|     override the generation of the SQL string. See :meth:`Func.as_sql` for | ||||
|     example usage. | ||||
|  | ||||
| .. method:: as_vendorname(self, compiler, connection) | ||||
| .. method:: as_vendorname(compiler, connection) | ||||
|  | ||||
|     Works like ``as_sql()`` method. When an expression is compiled by | ||||
|     ``compiler.compile()``, Django will first try to call ``as_vendorname()``, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user