summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2017-06-28Fixed #27473 -- Added DurationField support to Extract.Daniel Hahler
2017-06-27Fixed #28046 -- Added the db_tablespace parameter to class-based indexes.Mariusz Felisiak
Thanks Markus Holtermann and Tim Graham for reviews.
2017-06-27Fixed #28330 -- Prevented passing positional arguments to an Index.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-06-26Fixed #26362 -- Fixed update of the inherited id field of an object when its ↵Paulo Alvarado
parent changes.
2017-06-21Fixed #28329 -- Fixed Cast() with ↵Mariusz Felisiak
Big/Small/Positive/PositiveSmallIntegerField on MySQL.
2017-06-17Fixed #28319 -- Made TextField with choices use a Select widget.Maciej Jaworski
2017-06-14Fixed #27914 -- Added support for nested classes in ↵chillaranand
Field.deconstruct()/__repr__().
2017-06-14Moved common code to RelatedField.deconstruct().Adam Bogdał
2017-06-14Fixed #24195 -- Deconstructed the limit_choices_to option of related fields.Adam Bogdał
Migrations will now be created for changes to limit_choices_to.
2017-06-13Refs #23853 -- Updated sql.query.Query.join() docstring.Tim Graham
Follow up to ab89414f40db1598364a7fe4cfac1766cacd2668.
2017-06-13Fixed #28293 -- Fixed union(), intersection(), and difference() when ↵Mariusz Felisiak
combining with an EmptyQuerySet. Thanks Jon Dufresne for the report and Tim Graham for the review.
2017-06-11Refs #23919 -- Removed support for broken Model.__str__() in Model.__repr__().Tim Graham
Returning invalid bytestrings in __str__() is unlikely in Python 3.
2017-06-09Fixed #27953 -- Added instance's pk to Model.__str__().Collin Anderson
2017-06-08Fixed #28103 -- Added quarter extract, truncation, and lookup.Mads Jensen
Thanks Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
2017-06-08Removed unused sql.Query.query_termsClaude Paroz
Unused since 5008a4db440c8f7d108a6979b959025ffb5789ba.
2017-06-08Fixed #28282 -- Fixed class-based indexes name for models that only inherit ↵Jon Dufresne
Model.
2017-06-05Replaced Model._get_pk_val() with pk property.Tim Graham
Model.pk was added after _get_pk_val() and many places weren't simplified.
2017-06-05Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has ↵Adam Johnson
an instance only descriptor. Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86.
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-06-01Fixed #27639 -- Added chunk_size parameter to QuerySet.iterator().François Freitag
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-05-31Fixed #22550 -- Prohibited QuerySet.last()/reverse() after slicing.Matthias Erll
2017-05-30Fixed #28199 -- Fixed Subquery generating unnecessary/invalid CAST.Tim Graham
Thanks Simon Charette for the fix.
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27Fixed #28226 -- Replaced use of str.join() with concatenation.Tom
2017-05-27Fixed #28222 -- Allowed settable properties in ↵Alex
QuerySet.update_or_create()/get_or_create() defaults.
2017-05-25Fixed #28211 -- Prevented ORing an empty Q() from reducing query join ↵Tom
efficiency.
2017-05-19Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving ↵Tim Graham
child model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-18Fixed #28206 -- Fixed RawQuerySet crash on a model with a mixed case ↵Mariusz Felisiak
db_column pk on Oracle. Thanks Tim Graham for the review.
2017-05-11Fixed #24254 -- Fixed queries using the __in lookup with querysets using ↵Simon Charette
distinct() and order_by(). Thanks Tim for the review.
2017-05-11Fixed #28188 -- Fixed crash when pickling model fields.Tim Graham
Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. Thanks Adam Alton for the report and test, and Adam Johnson for suggesting the fix.
2017-05-11Fixed #28107 -- Disabled grouping of selected primary keys for unmanaged models.Simon Charette
The grouping caused an issue with database views as PostgreSQL's query planer isn't smart enough to introspect primary keys through views. Django doesn't support database views but documents that unmanaged models should be used to query them. Thanks powderflask for the detailed report and investigation.
2017-05-09Fixed #28164 -- Improved float conversions in DecimalField.to_pythonClaude Paroz
Thanks Tim Graham and Adam Johnson for the reviews.
2017-05-06Fixed #28062 -- Added a setting to disable server-side cursors on PostgreSQL.François Freitag
When a connection pooler is set up in transaction pooling mode, queries relying on server-side cursors fail. The DISABLE_SERVER_SIDE_CURSORS setting in DATABASES disables server-side cursors for this use case.
2017-05-05Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign ↵Tim Graham
key's parent model as the lookup value. Thanks Simon Charette for review.
2017-05-04Fixed #27554 -- Fixed prefetch_related() crash when fetching relations in ↵François Freitag
nested Prefetches.
2017-05-03Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child ↵Tim Graham
model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-01Refs #16187 -- Stopped compiling query compilers during lookup rhs processing.Simon Charette
Lookup right hand side processing was compiling query compilers which happened to work by chance as SQLCompiler defines a as_sql() method with two optional parameters albeit it doesn't expect the same type of arguments.
2017-04-28Reverted "Refs #20939 -- Moved subquery ordering clearing optimization to ↵Simon Charette
the __in lookup." This reverts commit e62ea0bb9cbb54c1eef848871fe3eab2bad268dc since it broke multi-column __in lookups and _meta.order_wrt on Oracle.
2017-04-27Refs #20939 -- Moved subquery ordering clearing optimization to the __in lookup.Simon Charette
Queries could potentially be resolved in cases where ordering matter.
2017-04-27Replaced set |= operator with update() to avoid temporary set.Jon Dufresne
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-25Refs #20939 -- Removed the Query._prepare_as_filter_value() hack.Simon Charette
2017-04-25Refs #20939 -- Removed the Query._forced_pk hack.Simon Charette
2017-04-24Fixed #28120 -- Checked that CharField.max_length is not a boolean.Carles Pina Estany
2017-04-23Fixed #28101 -- Fixed a regression with nested __in subquery lookups and ↵Simon Charette
to_field. Thanks Kristian Klette for the report and Tim for the help.
2017-04-19Fixed #28096 -- Allowed prefetch calls with ModelIterable subclassesClaude Paroz
Regression in 7ec330eeb96d0874949eacb8ed1bbb97e11807e1. Thanks Tim Graham for the review.
2017-04-10Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to ↵Sergey Fedoseev
another one.
2017-04-10Used NotSupportedError instead of DatabaseError in SQLCompiler.as_sql().Mariusz Felisiak
2017-04-10Fixed #28047 -- Fixed QuerySet.filter() crash when it uses the name of a ↵Tim Graham
OneToOneField pk. Regression in 1bc249c2a67c24fcd28436c85388eff1d826e305.