summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2016-07-15Refs #26889 -- Refactored SchemaEditor to allow backend specific indexes.Jon Dufresne
2016-07-15Fixed #26868 -- Changed MySQL version detection to use a query.Marc-Aurèle Brothier
Workaround a bug with MariaDB and MySQL native client not stripping the `5.5.5-` prefix.
2016-07-14Fixed #26804 -- Fixed a race condition in QuerySet.update_or_create().Jensen Cochran
2016-07-14Reverted "Fixed #25388 -- Added an option to allow disabling of migrations ↵Tim Graham
during test database creation" This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it disables migrations all the time, not just during tests.
2016-07-13Fixed #26889 -- Fixed missing PostgreSQL index in SchemaEditor.add_field().Jon Dufresne
2016-07-12Fixed #26884 -- Evaluated callables in QuerySet.update_or_create()'s ↵Kenneth
defaults when updating.
2016-07-12Fixed #26088 -- Made autodector detect changing proxy model to MTI.Jon Dufresne
2016-07-12Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's to_field_name.Andrey Fedoseev
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
2016-07-11Fixed #26749 -- Preserved behavior of use_for_related_field during deprecation.Julien Hartmann
2016-07-09Fixed #26881 -- Fixed duplicate managers in migrations.Loïc Bistuer
When both parent and child models had managers with the same name and a migrations opt-in both were added to the migration state.
2016-07-08Fixed #26796 -- Added a system check for m2m fields with ignored ↵Anderson Resende
limit_choices_to.
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-07-08Refs #17260 -- Prevented Oracle timezone conversion from stripping microseonds.Simon Charette
2016-07-07Fixed #25317, #26090 -- Fixed swapping combinations of unique and db_index ↵Jon Dufresne
during migrations.
2016-07-07Refs #26709 -- Checked allow_migrate_model() in Add/RemoveIndex operations.Akshesh
2016-07-07Refs #26709 -- Added 'model' argument to SchemaEditor.add/remove_index()Akshesh
This removes the dependency of the Index class on its model attribute when a name is passed to it. Thanks to Markush for discussions.
2016-07-07Fixed #26833 -- Fixed SchemaEditor._constraint_names() to handle ↵Jon Dufresne
features.uppercases_column_names.
2016-07-07Refs #26709 -- Added IndexOperation to avoid code duplication.Akshesh
2016-07-07Refs #26709 -- Required a name for Indexes passed to AddIndex.Akshesh
Thanks to Markush for discussions.
2016-07-06Fixed #26841 -- Avoid remake tables for altering togethers in sqlite3 (#6888)akki
alter_index_together and alter_unique_together no more use _remake_table method in sqlite3
2016-07-01Added package names to 'Error loading MySQLdb module' error.Adam Dobrawy
2016-06-30Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.Berker Peksag
2016-06-30Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check.Andrew Nester
2016-06-29Fixed #25694 -- Removed incorrect _uniq suffix on index names during migrations.Jon Dufresne
2016-06-29Fixed #19513, #18580 -- Fixed crash on QuerySet.update() after annotate().David Sanders
2016-06-28Fixed #26786 -- Avoided redundant max value validators on integer fields.Eduard Stepanov
2016-06-28Fixed #26171 -- Made MySQL create an index on ForeignKeys with ↵Aaron Elliot Ross
db_contraint=False. Refactored "Prevented unneeded index creation on MySQL-InnoDB" (2ceb10f) to avoid setting db_index=False.
2016-06-27Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if ↵Ben Demboski
model_instance=None.
2016-06-27Fixed #26751 -- Made dbshell exit with the shell's error code.Étienne BERSAC
2016-06-27Fixed #26709 -- Added class-based indexes.Akshesh
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
2016-06-21Fixed #26781 -- Made table name case change a noop on SQLite.Simon Charette
SQLite disgresses from the SQL standard by ignoring case of quoted identifiers. Thanks to laozzzi for the report and Tim for the review.
2016-06-20Fixed #26643 -- Prevented unnecessary AlterModelManagers operations caused ↵Loïc Bistuer
by the manager inheritance refactor. This also makes migrations respect the base_manager_name and default_manager_name model options. Thanks Anthony King and Matthew Schinckel for the initial patches.
2016-06-18Fixed #26778 -- Fixed ModelSignal.connect() weak argument.Tim Graham
2016-06-17Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."Tim Graham
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to regressions described in refs #26772.
2016-06-15Fixed broken links in docs and comments.Ville Skyttä
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-06-10Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names.Berker Peksag
2016-06-09Fixed #26648 -- Added a system check for invalid related_query_name's ↵Michal Petrucha
containing underscores.
2016-06-09Replaced a hardcoded LOOKUP_SEP in models/fields/__init__.pyMichal Petrucha
2016-06-09Fixed #26718 -- Added system check for existence of the fields specified by ↵Sergey Fedoseev
ForeignKey.to_field.
2016-06-07Fixed typos in db/models/fields/related_descriptors.pyTim Graham
2016-06-07Fixed typo in db/models/fields/related_descriptors.pyPaulo
2016-06-07Refs #15250 -- Added docstring for ForwardOneToOneDescriptor.Paulo
2016-06-06Fixed #26710 -- Made CreateModel.references_model() take app_label into account.Sergey Fedoseev
2016-06-06Fixed #26712 -- Avoided unnecessary SET TIMEZONE queries on PostgreSQL.Simon Charette
A change of the USE_TZ or TIME_ZONE settings doesn't necessarily require a change to the active connections' timezones.
2016-06-04Fixed #26667 -- Fixed a regression in queries on a OneToOneField that has ↵Tim Graham
to_field and primary_key=True. Thanks Simon Charette for review.
2016-06-03Fixed #26698 -- Fixed PostgreSQL dbshell crash on an empty database name.mieciu
2016-06-03Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.Paulo
Thanks marekw2143 for the initial patch and carljm for support.
2016-06-03Fixed #26638 -- Allowed callable arguments for ↵Will Koster
QuerySet.get_or_create()/update_or_create() defaults.