summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2017-09-11Refs #28492 -- Stopped accessing settings at Field.db_tablespace initialization.Simon Charette
Deferring accesses to settings allows database fields to be initialized before settings are loaded.
2017-09-11Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne
2017-09-10Removed unnecessary parens in _get_app_label_and_model_name().Mariusz Felisiak
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-09-06Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple.Sergey Fedoseev
2017-09-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-09-06Replaced @cached_property with class attributes where possible.Sergey Fedoseev
2017-09-06Removed DatabaseWrapper.psycopg2_version.Sergey Fedoseev
Unused since 3adc5f1ee6618a615db07d4a868b366a15c39f82.
2017-09-06Replaced deque() with list() in prefetch_related_objects(). Sergey Fedoseev
deque() isn't needed since algorithm doesn't require FIFO.
2017-09-05Fixed #11557 -- Added support for a list of fields in Meta.get_latest_by and ↵François Freitag
QuerySet.earliest()/latest().
2017-09-05Fixed #28335 -- Allowed query expressions in Meta.ordering.Dima Kudosh
2017-09-05Removed unneeded __init__() in PostgreSQL DatabaseWrapper.Mads Jensen
2017-09-05Fixed typo in django/db/models/query.py docstring.Boris Burkov
2017-09-05Removed useless condition from Oracle's NullBooleanField's check constraint.Mariusz Felisiak
NULL cannot be compare with standard operators on Oracle, it works only with IS NULL and IS NOT NULL operators. Therefore 'OR ... IS NULL' condition in NullBooleanField's check constraint is redundant. Nullability is checked in a separate constraint.
2017-09-04Fixed #28493 -- Made migrations autodetector find dependencies for model ↵Jeremy Satterfield
renaming.
2017-09-04Corrected YearComparisonLookup.get_bound() signature.Srinivas Reddy Thatiparthy
2017-09-03Updated EmpytResultSet import not to use the alias.Mariusz Felisiak
2017-09-02Moved select_sql in SQLCompiler.get_extra_select() to improve performance.Mariusz Felisiak
2017-08-31Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.Jeremy Kerr
Previously, deferring fields in different classes didn't omit the superclass' deferred field. Thanks Simon Charette for the suggested fix.
2017-08-31Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.Tim Graham
Previously, it was a QuerySet which could reevaluate to a new value if the model's data changes. This is inconsistent with other Field.value_from_object() methods. This allows reverting the fix in the admin for refs #27998.
2017-08-31Simplified model's Options._get_fields() a bit.Sergey Fedoseev
2017-08-25Simplified migrations.state.ProjectState.__eq__().Sergey Fedoseev
2017-08-23Simplified migrations.graph.Node.iterative_dfs(), ancestors(), and ↵Sergey Fedoseev
descendants().
2017-08-23Removed unneeded iter() calls.Sergey Fedoseev
A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad.
2017-08-23Refs #28459 -- Improved performance of SQLCompiler.apply_converters().Sergey Fedoseev
2017-08-22Simplified usage of sets in MigrationAutodetector.Sergey Fedoseev
2017-08-22Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.Kevin Grinberg
Regression in 69b7d4b116e3b70b250c77829e11038d5d55c2a8.
2017-08-22Refs #28459 -- Improved performance of FlatValuesListIterable.Sergey Fedoseev
2017-08-21Fixed #28375 -- Fixed KeyError crash on reverse prefetch of a model with ↵Paulo
OneToOneField primary key to a non-pk field.
2017-08-21Removed postgresql_psycopg2.versionMariusz Felisiak
Uneeded since 29ea9714ee23525000dd8bdb7a9aafb2147de8c7.
2017-08-16Fixed #28498 -- Fixed test database creation with cx_Oracle 6.Mariusz Felisiak
2017-08-15Simplified generation of result in Query.get_aggregation().Sergey Fedoseev
2017-08-15Simplified RelatedPopulator.populate().Sergey Fedoseev
2017-08-15Removed redundant condition in QuerySet.resolve_expression().Sergey Fedoseev
2017-08-15Avoided creation of temporary set in Query.append_annotation_mask().Sergey Fedoseev
2017-08-12Fixed #27849 -- Added filtering support to aggregates.Tom
2017-08-12Fixed #23546 -- Added kwargs support for CursorWrapper.callproc() on Oracle.Mariusz Felisiak
Thanks Shai Berger, Tim Graham and Aymeric Augustin for reviews and Renbi Yu for the initial patch.
2017-08-11Refs #28459 -- Improved performance of BaseExpression.convert_value().Sergey Fedoseev
2017-08-11Refs #28459 -- Optimized ModelState instantiation.Sergey Fedoseev
2017-08-11Fixed #28456 -- Allowed customizing Model pickling by overriding __getstate__().Nerl~
2017-08-11Simplified calculation of used joins in Query.build_filter().Sergey Fedoseev
2017-08-11Removed obsolete DecimalComparisonLookup.Sergey Fedoseev
Unneeded since c3c6c92d769d44a98299c462c48a9599c0172e91.
2017-08-11Replaced typecast_decimal() with decimal.Decimal().Sergey Fedoseev
2017-08-11Removed outdated comment in Query.build_filter().Sergey Fedoseev
2017-08-10Fixed #28386 -- Made operations within non-atomic migrations honor the ↵Evan Grim
operation's atomic flag when migrating backwards.
2017-08-10Refs #18247 -- Fixed filtering on ↵Sergey Fedoseev
CombinedExpression(output_field=DecimalField()) annotation on SQLite.
2017-08-10Refs #28459 -- Improved performance of loading DecimalField on SQLite.Sergey Fedoseev
2017-08-10Refs #16043 -- Refactored internal fields value cache.Paulo
* Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support.
2017-08-10Refs #28459 -- Made Oracle get_db_converters() return converter for empty ↵Sergey Fedoseev
strings only when it's needed.