summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future.Tim Graham
Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420.
2017-01-17Refs #26058 -- Removed deprecated FileField.get_directory_name()/get_filename().Tim Graham
2017-01-17Refs #26320 -- Removed implicit OneToOnField parent_link per deprecation ↵Tim Graham
timeline.
2017-01-17Refs #16508 -- Removed virtual aliases of "private fields".Tim Graham
Per deprecation timeline.
2017-01-17Refs #26226 -- Removed support for related manager classes without a ↵Tim Graham
_apply_rel_filters() method. Per deprecation timeline.
2017-01-17Refs #26285 -- Removed MySQL __search lookup per deprecation timeline.Tim Graham
2017-01-17Refs #26230 -- Removed support for model name query lookups when using ↵Tim Graham
Meta.default_related_name. Per deprecation timeline.
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2017-01-17Refs #25550 -- Removed support for direct assignment to the reverse side of ↵Tim Graham
a related set.
2017-01-17Refs #24716 -- Removed Field._get_val_from_obj() per deprecation timeline.Tim Graham
2017-01-17Refs #24215 -- Removed add_lazy_relation() per deprecation timeline.Tim Graham
2017-01-17Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.Tim Graham
Per deprecation timeline.
2017-01-17Removed Field.rel and Field.remote_field.to per deprecation timeline.Tim Graham
2017-01-17Refs #24205 -- Removed Signal.disconnect()'s weak argument.Tim Graham
Per deprecation timeline.
2017-01-16Refs #25809 -- Made a few late review comments for BrinIndex.Mads Jensen
2017-01-16Fixed #25307 -- Fixed QuerySet.annotate() crash with conditional expressions.Josh Smeaton
Thanks Travis Newport for the tests and Josh Smeaton for contributing to the patch.
2017-01-16Fixed #27736 -- Used decorators for lookup registration.Mads Jensen
2017-01-15Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.Mads Jensen
Thanks Tim Graham and Markus Holtermann for review.
2017-01-14Fixed #27149 -- Added Subquery and Exists database expressions.Matthew Schinckel
Thanks Josh Smeaton for Oracle fixes.
2017-01-14Fixed #27718 -- Added QuerySet.union(), intersection(), difference().Florian Apolloner
Thanks Mariusz Felisiak for review and Oracle assistance. Thanks Tim Graham for review and writing docs.
2017-01-14Refs #16614 -- Prevented database errors from being masked by cursor close.François Freitag
When an error occurred during the cursor.execute statement, the cursor is closed. This operation did not fail with client-side cursors. Now, with server-side cursors, the close operation might fail (example below). The original error should be raised, not the one raised by cursor.close(), this is only clean-up code. For example, one can attempt to create a named cursor for an invalid query. psycopg will raise an error about the invalid query and the server-side cursor will not be created on PostgreSQL. When the code attempts to cursor.close(), it asks psycopg to close a cursor that was not created. pyscopg raises a new error: psycopg2.OperationalError: cursor "_django_curs_140365867840512_20" does not exist.
2017-01-11Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.François Freitag
Thanks to Josh Smeaton for the idea of implementing server-side cursors in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin Turner for their previous work. Also Simon Charette and Tim Graham for review.
2017-01-03Fixed #25912 -- Added binary left/right shift operators to F expressions.anabelensc
Thanks Mariusz Felisiak for review and MySQL advice.
2016-12-30Fixed #27458 -- Fixed invalid sequence/index names when using "USER"."TABLE" ↵Andrew Nester
db_table on Oracle.
2016-12-29Fixed #27615 -- Used timedeltas as arguments to Oracle database driver.Mariusz Felisiak
Removed unused DatabaseFeatures.driver_supports_timedeltas workaround.
2016-12-29Removed unused enumerate.Florian Apolloner
2016-12-28Fixed #27651 -- Allowed M2M to concrete and proxy through model.Tim Graham
2016-12-24Fixed #27498 -- Fixed filtering on annotated DecimalField on SQLite.Peter Inglesby
2016-12-23Used @cached_property in RawQuerySet.Adam Chainz
2016-12-23Refs #27624 -- Made QuerySet._prefetch_related_lookups immutable.Adam Chainz
2016-12-23Refs #18823 -- Corrected field name in an m2m manager error message.Andrey Kuzminov
2016-12-20Removed unneeded values in NullBooleanField.formfield().Tim Graham
These values are duplicated in the super().
2016-12-15Optimized Model instantiation a bit.Adam Chainz
* Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module * Alias some repeat accesses inside the method to use the slightly faster local lookups * Use tuple to iterate remaining kwargs as it's faster to construct * Cache Field.get_default() to avoid running through all the logic on every call * Use a cached list of the properties on the model class to avoid repeat isinstance() calls
2016-12-14Fixed #27599 -- Fixed Field.__str__() crash for fields not attached to models.Morgan Aubert
2016-12-14Fixed #27594 -- Fixed select_related() with reverse self-referential ↵Daniel Hillier
OneToOneField. Fixed definition of `klass_info['from_parent']` so that two models aren't considered from a parent class if the model classes are the same.
2016-12-08Fixed #13312 -- Allowed specifying the order of null fields in queries.Yohann Gabory
Thanks Mariusz Felisiak for finishing the patch.
2016-12-07Fixed #17002 -- Allowed using a ManyToManyField through model that inherits ↵InvalidInterrupt
another.
2016-12-07Fixed #25708 -- Fixed annotations with geometry values.Sergey Fedoseev
2016-12-05Refs #27025 -- Fixed Python 3.6 deprecation warning for empty model super() ↵Tim Graham
calls. https://bugs.python.org/issue23722 Thanks Nick Coghlan for advice and review.
2016-12-01Fixed #27546 -- Removed hardcoded class names in __repr__() methods.Keda87
2016-11-30Refs #27358 -- Fixed system check crash with an empty FileField.upload_to.Lex Berezhny
2016-11-29Fixed #27358 -- Added a system check to prevent FileField's upload_to from ↵Henry Dang
starting with a slash. Thanks Frank Bijlsma for the initial patch.
2016-11-25Fixed #27532 -- Deprecated Model._meta.has_auto_fieldAdam Chainz
2016-11-24Improved the way Model.save() skips the auto_field.Adam Chainz
Identity comparison is quicker than isinstance(), and it avoids coupling between Model and AutoField.
2016-11-23Fixed #27499 -- Made Prefetches pickle without evaluating their QuerySet.Adam Chainz