summaryrefslogtreecommitdiff
path: root/django/db/models/functions
AgeCommit message (Collapse)Author
2017-09-18Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen
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-11Fixed #28492 -- Defined default output_field of expressions at the class level.Simon Charette
This wasn't possible when settings were accessed during Field initialization time as our test suite setup script was triggering imports of expressions before settings were configured.
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-07-31Removed unneeded TruncBase.arity.Sergey Fedoseev
Uneeded since its introduction in 2a4af0ea43512370764303d35bc5309f8abce666.
2017-07-26Allowed database backends to specify data types for Cast().Mariusz Felisiak
A small refactor ahead of refs #28371.
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-17Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-07-14Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from ↵Sergey Fedoseev
_output_field).
2017-06-28Fixed #27473 -- Added DurationField support to Extract.Daniel Hahler
2017-06-21Fixed #28329 -- Fixed Cast() with ↵Mariusz Felisiak
Big/Small/Positive/PositiveSmallIntegerField on MySQL.
2017-06-08Fixed #28103 -- Added quarter extract, truncation, and lookup.Mads Jensen
Thanks Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
2017-04-03Refs #27834 -- Removed Value wrapping from StrIndex's substring param.Adam Johnson
2017-03-29Refs #18247 -- Fixed SQLite QuerySet filtering on decimal result of Least ↵Sergey Fedoseev
and Greatest.
2017-03-23Removed unneeded Value wraps in Substr.Sergey Fedoseev
Unneeded since e2d6e14662d780383e18066a3182155fb5b7747b.
2017-03-14Fixed #27834 -- Added StrIndex database function.Brad Melin
2017-02-28Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan
2017-02-06Fixed #27802 -- Unified return value of db backend datetime SQL methods.Mariusz Felisiak
2017-02-01Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-11Fixed #25240 -- Added ExtractWeek and exposed it through the __week lookup.Mads Jensen
Thanks to Mariusz Felisiak and Tim Graham for review.
2016-11-10Removed redundant DateTimeField.register_lookup()s.Tim Graham
DateTimeField inherits these lookups from DateField.
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-07-08Fixed #26348 -- Added TruncTime and exposed it through the __time lookup.Simon Charette
Thanks Tim for the review.
2016-07-08Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.Simon Charette
Thanks Josh for the amazing testing setup and Tim for the review.
2016-05-19Fixed some newlines in imports per isort.Tim Graham
2016-05-18Fixed #25774 -- Refactor datetime expressions into public APIJosh Smeaton