Adam Johnson 
							
						 
					 
					
						
						
							
						
						8c1b073b59 
					 
					
						
						
							
							Doc'd return values of as_sql() for Func and query expressions.  
						
						
						
						
					 
					
						2020-03-06 13:02:08 +01:00 
						 
				 
			
				
					
						
							
							
								Taoup 
							
						 
					 
					
						
						
							
						
						cebd41e416 
					 
					
						
						
							
							Fixed   #31110  -- Fixed typo in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2019-12-21 20:33:04 +01:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						416c584cab 
					 
					
						
						
							
							Removed versionadded/changed annotations for 2.2.  
						
						
						
						
					 
					
						2019-09-10 12:01:00 +02:00 
						 
				 
			
				
					
						
							
							
								Tobias Kunze 
							
						 
					 
					
						
						
							
						
						4a954cfd11 
					 
					
						
						
							
							Fixed   #30573  -- Rephrased documentation to avoid words that minimise the involved difficulty.  
						
						... 
						
						
						
						This patch does not remove all occurrences of the words in question.
Rather, I went through all of the occurrences of the words listed
below, and judged if they a) suggested the reader had some kind of
knowledge/experience, and b) if they added anything of value (including
tone of voice, etc). I left most of the words alone. I looked at the
following words:
- simply/simple
- easy/easier/easiest
- obvious
- just
- merely
- straightforward
- ridiculous
Thanks to Carlton Gibson for guidance on how to approach this issue, and
to Tim Bell for providing the idea. But the enormous lion's share of
thanks go to Adam Johnson for his patient and helpful review. 
						
						
					 
					
						2019-09-06 13:27:46 +02:00 
						 
				 
			
				
					
						
							
							
								Matthew Schinckel 
							
						 
					 
					
						
						
							
						
						4137fc2efc 
					 
					
						
						
							
							Fixed   #25367  -- Allowed boolean expressions in QuerySet.filter() and exclude().  
						
						... 
						
						
						
						This allows using expressions that have an output_field that is a
BooleanField to be used directly in a queryset filters, or in the
When() clauses of a Case() expression.
Thanks Josh Smeaton, Tim Graham, Simon Charette, Mariusz Felisiak, and
Adam Johnson for reviews.
Co-Authored-By: NyanKiyoshi <hello@vanille.bid > 
						
						
					 
					
						2019-08-29 09:45:29 +02:00 
						 
				 
			
				
					
						
							
							
								Matthew Schinckel 
							
						 
					 
					
						
						
							
						
						dba749917f 
					 
					
						
						
							
							Doc'd for_save argument of Expression.resolve_expression().  
						
						
						
						
					 
					
						2019-08-27 16:54:01 +02:00 
						 
				 
			
				
					
						
							
							
								Vyacheslav Ver 
							
						 
					 
					
						
						
							
						
						76b3fc5c8d 
					 
					
						
						
							
							Fixed   #30486  -- Fixed the default value of Aggregate.distinct and updated example of custom aggregate functions.  
						
						
						
						
					 
					
						2019-06-11 11:40:48 +02:00 
						 
				 
			
				
					
						
							
							
								Vyacheslav Ver 
							
						 
					 
					
						
						
							
						
						60b6a7ea9d 
					 
					
						
						
							
							Fixed typo in expression documentation.  
						
						
						
						
					 
					
						2019-05-16 16:03:27 +02:00 
						 
				 
			
				
					
						
							
							
								Daniel Musketa 
							
						 
					 
					
						
						
							
						
						6fd9c9daa6 
					 
					
						
						
							
							Fixed   #30365  -- Fixed syntax highlighting in SQL examples.  
						
						... 
						
						
						
						Sphinx interprets some "%[a-z]" in SQL statements as a
"Literal.String.Interpol" which leads to incorrect highlighting. 
						
						
					 
					
						2019-04-23 12:37:50 +02:00 
						 
				 
			
				
					
						
							
							
								sage 
							
						 
					 
					
						
						
							
						
						bfae195b0a 
					 
					
						
						
							
							Fixed   #30326  -- Doc'd how to avoid persistence of F() assignment.  
						
						
						
						
					 
					
						2019-04-15 08:57:33 +02:00 
						 
				 
			
				
					
						
							
							
								Simon Charette 
							
						 
					 
					
						
						
							
						
						9dc367dc10 
					 
					
						
						
							
							Refs  #30158  -- Added alias argument to Expression.get_group_by_cols().  
						
						
						
						
					 
					
						2019-03-21 18:47:46 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						ec7e179aeb 
					 
					
						
						
							
							Removed versionadded/changed annotations for 2.1.  
						
						
						
						
					 
					
						2019-01-17 10:50:25 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Charette 
							
						 
					 
					
						
						
							
						
						bc05547cd8 
					 
					
						
						
							
							Fixed   #28658  -- Added DISTINCT handling to the Aggregate class.  
						
						
						
						
					 
					
						2019-01-09 17:52:36 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Charette 
							
						 
					 
					
						
						
							
						
						9a7d336c38 
					 
					
						
						
							
							Corrected Aggregate docs to reflect that it accepts multiple expressions.  
						
						
						
						
					 
					
						2018-11-27 09:22:24 -05:00 
						 
				 
			
				
					
						
							
							
								Curtis Maloney 
							
						 
					 
					
						
						
							
						
						c49ea6f591 
					 
					
						
						
							
							Refs  #20910  -- Replaced snippet directive with code-block.  
						
						
						
						
					 
					
						2018-09-10 13:00:34 -04:00 
						 
				 
			
				
					
						
							
							
								priyanshsaxena 
							
						 
					 
					
						
						
							
						
						83b04d4f88 
					 
					
						
						
							
							Fixed   #29048  -- Added **extra_context to database function as_vendor() methods.  
						
						
						
						
					 
					
						2018-08-23 11:52:09 -04:00 
						 
				 
			
				
					
						
							
							
								Mads Jensen 
							
						 
					 
					
						
						
							
						
						ab251fdad2 
					 
					
						
						
							
							Refs  #26608  -- Removed incorrect sentence in Expression.contains_over_clause docs.  
						
						
						
						
					 
					
						2018-07-05 11:12:08 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						7543ab1f8d 
					 
					
						
						
							
							Removed versionadded/changed annotations for 2.0.  
						
						
						
						
					 
					
						2018-05-17 11:00:10 -04:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						35319bf12c 
					 
					
						
						
							
							Alphabetized imports in various docs.  
						
						... 
						
						
						
						Follow-up of d97cce34097d3fe36c62 
						
						
					 
					
						2018-05-12 19:37:42 +02:00 
						 
				 
			
				
					
						
							
							
								drd0013 
							
						 
					 
					
						
						
							
						
						5d923f2d8c 
					 
					
						
						
							
							Fixed   #29313  -- Doc'd how to use F() to sort null values.  
						
						
						
						
					 
					
						2018-04-19 20:07:40 -04:00 
						 
				 
			
				
					
						
							
							
								Matthew Wilkes 
							
						 
					 
					
						
						
							
						
						2162f0983d 
					 
					
						
						
							
							Fixed   #24747  -- Allowed transforms in QuerySet.order_by() and distinct(*fields).  
						
						
						
						
					 
					
						2018-02-10 19:08:55 -05:00 
						 
				 
			
				
					
						
							
							
								priyanshsaxena 
							
						 
					 
					
						
						
							
						
						617d5f410f 
					 
					
						
						
							
							Fixed   #29066  -- Allowed negating query expressions.  
						
						
						
						
					 
					
						2018-01-31 10:54:19 -05:00 
						 
				 
			
				
					
						
							
							
								Igor Starikov 
							
						 
					 
					
						
						
							
						
						3cc08f4b2b 
					 
					
						
						
							
							Fixed typo in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2017-12-05 08:39:57 -05:00 
						 
				 
			
				
					
						
							
							
								Benjamin Bach 
							
						 
					 
					
						
						
							
						
						bf49d9eb0b 
					 
					
						
						
							
							Fixed   #28815  -- Fixed ExtractYear imports in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2017-11-17 17:30:21 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						327f0f37ce 
					 
					
						
						
							
							Fixed   #28770  -- Warned that quoting a placeholder in a raw SQL string is unsafe.  
						
						... 
						
						
						
						Thanks Hynek Cernoch for the report and review. 
						
						
					 
					
						2017-11-07 13:07:12 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						1e7dbbdec5 
					 
					
						
						
							
							Fixed   #28680  -- Doc'd Func.__init__()'s **extra and as_sql()'s **extra_context aren't escaped.  
						
						... 
						
						
						
						Thanks Hynek Cernoch for the report and review. 
						
						
					 
					
						2017-11-01 11:34:06 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						5446b72003 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.11.  
						
						
						
						
					 
					
						2017-09-22 12:51:18 -04:00 
						 
				 
			
				
					
						
							
							
								Mads Jensen 
							
						 
					 
					
						
						
							
						
						d549b88050 
					 
					
						
						
							
							Fixed   #26608  -- Added support for window expressions (OVER clause).  
						
						... 
						
						
						
						Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes,
Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie
Cockburn for initial patch. 
						
						
					 
					
						2017-09-18 09:42:29 -04:00 
						 
				 
			
				
					
						
							
							
								Tom 
							
						 
					 
					
						
						
							
						
						b78d100fa6 
					 
					
						
						
							
							Fixed   #27849  -- Added filtering support to aggregates.  
						
						
						
						
					 
					
						2017-08-12 17:58:28 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						487362fa8f 
					 
					
						
						
							
							Fixed   #28370  -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().  
						
						... 
						
						
						
						Unused since a0d166306f 
						
						
					 
					
						2017-07-20 16:30:08 -04:00 
						 
				 
			
				
					
						
							
							
								Tomer Chachamu 
							
						 
					 
					
						
						
							
						
						62917cee5a 
					 
					
						
						
							
							Doc'd the need to remove default ordering on Subquery aggregates.  
						
						
						
						
					 
					
						2017-07-18 08:48:25 -04:00 
						 
				 
			
				
					
						
							
							
								Alasdair Nicol 
							
						 
					 
					
						
						
							
						
						757aefc12b 
					 
					
						
						
							
							Removed self from method signatures in docs.  
						
						
						
						
					 
					
						2017-03-16 20:33:59 -04:00 
						 
				 
			
				
					
						
							
							
								lb1c 
							
						 
					 
					
						
						
							
						
						36f2262741 
					 
					
						
						
							
							Fixed incorrect import in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2017-03-15 08:09:48 -04:00 
						 
				 
			
				
					
						
							
							
								chillaranand 
							
						 
					 
					
						
						
							
						
						dc165ec8e5 
					 
					
						
						
							
							Refs  #23919  -- Replaced super(ClassName, self) with super() in docs.  
						
						
						
						
					 
					
						2017-01-25 11:53:05 -05:00 
						 
				 
			
				
					
						
							
							
								Paolo Melchiorre 
							
						 
					 
					
						
						
							
						
						5890d6ab03 
					 
					
						
						
							
							Fixed typo in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2017-01-25 07:46:18 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						e27e4c0339 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.10.  
						
						
						
						
					 
					
						2017-01-17 20:52:05 -05:00 
						 
				 
			
				
					
						
							
							
								Matthew Schinckel 
							
						 
					 
					
						
						
							
						
						236ebe94bf 
					 
					
						
						
							
							Fixed   #27149  -- Added Subquery and Exists database expressions.  
						
						... 
						
						
						
						Thanks Josh Smeaton for Oracle fixes. 
						
						
					 
					
						2017-01-14 09:12:24 -05:00 
						 
				 
			
				
					
						
							
							
								Yohann Gabory 
							
						 
					 
					
						
						
							
						
						47ef8f31f3 
					 
					
						
						
							
							Fixed   #13312  -- Allowed specifying the order of null fields in queries.  
						
						... 
						
						
						
						Thanks Mariusz Felisiak for finishing the patch. 
						
						
					 
					
						2016-12-08 09:54:07 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						0d6c7cae7c 
					 
					
						
						
							
							Inlined a note in docs/ref/models/expressions.txt.  
						
						
						
						
					 
					
						2016-11-09 08:20:59 -05:00 
						 
				 
			
				
					
						
							
							
								Jop Reyntjes 
							
						 
					 
					
						
						
							
						
						f8fab6f902 
					 
					
						
						
							
							Fixed   #27414  -- Doc'd that F() expressions on relations return pk values.  
						
						
						
						
					 
					
						2016-11-09 07:11:46 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						c60feb6999 
					 
					
						
						
							
							Fixed   #25475  -- Doc'd how to use a literal % in Func.template.  
						
						
						
						
					 
					
						2016-10-07 10:24:45 -04:00 
						 
				 
			
				
					
						
							
							
								petedmarsh 
							
						 
					 
					
						
						
							
						
						7bf3ba0d0c 
					 
					
						
						
							
							Fixed   #26899  -- Documented why RawSQL params is a required parameter.  
						
						
						
						
					 
					
						2016-07-21 10:28:31 -04:00 
						 
				 
			
				
					
						
							
							
								Tsering 
							
						 
					 
					
						
						
							
						
						fc4b4fd585 
					 
					
						
						
							
							Refs  #23386  -- Documented that F() expressions are applied on each model.save()  
						
						
						
						
					 
					
						2016-06-28 16:24:56 -04:00 
						 
				 
			
				
					
						
							
							
								Ed Henderson 
							
						 
					 
					
						
						
							
						
						4a4d7f980e 
					 
					
						
						
							
							Fixed   #26021  -- Applied hanging indentation to docs.  
						
						
						
						
					 
					
						2016-06-03 11:44:34 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						46a38307c2 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.9.  
						
						
						
						
					 
					
						2016-05-20 11:44:29 -04:00 
						 
				 
			
				
					
						
							
							
								Ville Skyttä 
							
						 
					 
					
						
						
							
						
						575a9a791e 
					 
					
						
						
							
							Normalized "an SQL" spelling.  
						
						
						
						
					 
					
						2016-05-03 19:30:48 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						a755e0657e 
					 
					
						
						
							
							Removed unused BaseExpression.refs_aggregate().  
						
						... 
						
						
						
						Unused since afe0bb7b13 
						
						
					 
					
						2016-04-22 13:04:13 -04:00 
						 
				 
			
				
					
						
							
							
								Kai Feldhoff 
							
						 
					 
					
						
						
							
						
						5336158990 
					 
					
						
						
							
							Fixed   #25759  -- Added keyword arguments to customize Expressions' as_sql().  
						
						
						
						
					 
					
						2016-03-29 08:09:58 -04:00 
						 
				 
			
				
					
						
							
							
								Kai Feldhoff 
							
						 
					 
					
						
						
							
						
						5ca08f7cab 
					 
					
						
						
							
							Refs  #25759  -- Documented customizing expressions' SQL on other databases.  
						
						
						
						
					 
					
						2016-03-21 20:20:29 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						de8a11ba18 
					 
					
						
						
							
							Fixed   #26321  -- Added missing "for_save" parameter in expressions example.  
						
						... 
						
						
						
						Thanks tomaszn for the patch. 
						
						
					 
					
						2016-03-03 19:36:03 -05:00