summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
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-05Refs #27324 -- Optimized DatabaseIntrospection.get_constraints() for foreign ↵Mariusz Felisiak
keys on Oracle.
2016-12-02Fixed #27561 -- Added Oracle support for binary "or" operator.Mariusz Felisiak
Removed DatabaseFeatures.supports_bitwise_or feature (unused, always True).
2016-12-01Fixed #27546 -- Removed hardcoded class names in __repr__() methods.Keda87
2016-11-30Refs #24245 -- Added introspection for database defaults on Oracle.Mariusz Felisiak
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-29Fixed #27544 -- Fixed QuerySet.update(dt=F('dt') + timedelta) crash on SQLite.Andrew Nester
2016-11-28Fixed #27321 -- Added detection for table case name sensitivity on MySQL.Adam Chainz
2016-11-28Refs #26327 -- Renamed JsonAgg to JSONBAgg.Mads Jensen
Thanks to Christian von Roques for the report.
2016-11-25Fixed #27532 -- Deprecated Model._meta.has_auto_fieldAdam Chainz
2016-11-25Fixed grammar in sqlite's DatabaseOperations.bulk_batch_size()'s docstring.Daniel Hahler
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
2016-11-23Cleaned up some __getstate__() docstrings.Tim Graham
2016-11-23Fixed #24959 -- Fixed queries using negative timedeltas on MySQL and Oracle.Mariusz Felisiak
2016-11-23Fixed #27504 -- Allowed using the ORM after an error and rollback when ↵Mark Young
autocommit is off.
2016-11-22Fixed #27295 -- Added a system check to prohibit model names that start or ↵Quentin Fulsher
end with an underscore or contain double underscores.
2016-11-20Fixed #27512 -- Removed unused code in Model.__init__().Adam Chainz
2016-11-20Refs #26207 -- Removed obsolete comments about deferred model classes.Adam Chainz
2016-11-20Fixed #27514 -- Tested Model.__init__ excessive number of fields.Adam Chainz
2016-11-15Fixed #27407 -- Made Model.delete(keep_parents=True) preserve parent reverse ↵Simon Charette
relationships. Thanks Tim for the review.
2016-11-14Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami
2016-11-14Fixed #27481 -- Made SQLite return annotated boolean values as boolean, not ↵Sergey Fedoseev
integer. Thanks Simon Charette for review.
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
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-11-08Refs #27420 -- Removed exception hiding in Oracle test user creation during ↵Mariusz Felisiak
--keepdb. If the test user creation fails here, _create_test_db() would return without switching to the test user which caused the tests to run using the main connection instead of the test user.
2016-11-08Fixed #27420 -- Quoted the Oracle test user password in queries.Mariusz Felisiak
2016-11-06Fixed #27378 -- Added support for serialization of uuid.UUID in migrations.Maxime Lorant
Thanks Yuriy Korobko for the initial patch and Tobias McNulty for review.
2016-11-06Fixed #27372 -- Fixed introspection of SQLite foreign keys with spaces in DDL.Saulius Žemaitaitis
Thanks samuller for the report and initial patch.
2016-11-05Fixed #27441 -- Improved SQL for 'DROP COLUMN' on MySQLAdam Chainz
'CASCADE' is an undocumented no-op in MySQL, so to avoid confusion Django no longer outputs it.
2016-11-01Fixed CVE-2016-9013 -- Generated a random database user password when ↵Marti Raudsepp
running tests on Oracle. This is a security fix.
2016-10-31Fixed #27148 -- Fixed ModelMultipleChoiceField crash with invalid UUID.Tim Graham
2016-10-28Fixed #27188 -- Allowed using unique=True with FileField.Michael Scott
Thanks Tim Graham for the initial patch.
2016-10-28Simplified AppConfig.import_models().Aymeric Augustin
Since AppConfig now has a reference to its parent Apps registry, it can look up the models there instead of receiving them in argument.
2016-10-28Modified readiness check in AppConfig.get_model(s).Aymeric Augustin
It was inconsistent with the equivalent check in Apps.get_model(s) because I made incorrect assumptions when I wrote that code and needlessly complicated readiness checks. This is a backwards-incompatible change.
2016-10-28Fixed #20939 -- Simplified query generation by converting QuerySet to Query.Tim Graham
Thanks Anssi Kääriäinen for the initial patch and Anssi, Simon Charette, and Josh Smeaton for review.
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-10-26Fixed #27334 -- Allowed FileField to move rather than copy a file.Adam Chidlow
When a FileField is set to an instance of File that is not also an instance of FieldFile, pre_save() passes that object as the contents to Storage.save(). This allows the file to be moved rather than copied to the upload destination.
2016-10-25Fixed #27385 -- Fixed QuerySet.bulk_create() on PostgreSQL when the number ↵David Barragán Merino
of objects is a multiple plus one of batch_size.
2016-10-25Updated postgresql.org links to https and made them canonical.Marti Raudsepp
2016-10-24Removed unused loop in Query.change_aliases().Tim Graham
Unknown if it was ever used.
2016-10-17Refs #20888 -- Fixed index ordering introspection on PostgreSQL 9.6.François Freitag
2016-10-15Removed unused branch in ModelIterable.__iter__().Tim Graham
Unknown if it was ever used.
2016-10-15Removed unused 'field' argument to DeleteQuery.delete_batch().Tim Graham
Unused since a170c3f755351beb35f8166ec3c7e9d524d9602d.
2016-10-14Removed DatabaseFeatures.can_combine_inserts_with_and_without_auto_increment_pk.Tim Graham
Unused (always False) after 29132ebdef0e0b9c09e456b05f0e6a22f1106a4f.
2016-10-14Removed unused QuerySet.value_annotation attribute.Tim Graham
Unused since 5008a4db440c8f7d108a6979b959025ffb5789ba.
2016-10-14Fixed #27324 -- Simplified DatabaseIntrospection.get_constraints() on Oracle.Mariusz Felisiak
2016-10-14Tested QuerySet compatibility check.Tim Graham
cdfdcf4b70bebfc68871df885387790c6afbc23c missed this test.