summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2015-05-17Removed global timezone-aware datetime adapters.Aymeric Augustin
Refs #23820. Fixed #19738. Refs #17755. In order not to introduce a regression for raw queries, parameters are passed through the connection.ops.value_to_db_* methods, depending on their type.
2015-05-17Normalized the implementation of get_db_converters.Aymeric Augustin
Put the types in the same order and checked for None consistently.
2015-05-17Removed global timezone-aware datetime converters.Aymeric Augustin
Refs #23820.
2015-05-16Removed redundant list() calls.Tim Graham
2015-05-15Fixed #24791 -- Added fallback when 'postgres' database isn't availableClaude Paroz
Thanks Carl Meyer and Tim Graham for the reviews.
2015-05-15Fixed #24757 -- Recreated MySQL index when needed during combined index removalClaude Paroz
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and review.
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-05-13Fixed #24742 -- Made runserver.check_migrations ignore read-only databasesClaude Paroz
Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
2015-05-12Fixed #24105 -- Called Storage.get_valid_name() when upload_to is callableAbhaya Agarwal
2015-05-12Fixed #24156 -- Fixed inherited related name of ManyToManyField.Andriy Sokolovskiy
Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
2015-05-11Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in some queriesAnssi Kääriäinen
When the query's model had a self-referential foreign key, the compiler.get_group_by() code incorrectly used the self-referential foreign key's column (for example parent_id) as GROUP BY clause when it should have used the model's primary key column (id).
2015-05-11Fixed #24766 -- Added join promotion for Case expressionsAnssi Kääriäinen
2015-05-11Removed redundant removal of hyphens in UUIDField.Matt Robenolt
2015-05-08Fixed #24758 -- Corrected Options.get_fields() docstring.Tim Graham
2015-05-06Fixed #24708 -- Handled non-string values in GenericIPAddressField.to_python()Pradeek
2015-05-05Fixed #24752 -- query crash when reusing Case expressionsAnssi Kääriäinen
Case expressions weren't copied deep enough (self.cases list was reused resulting in an error).
2015-05-04Allowed using the sqlite3 backend as much as possible without _sqlite3.Milan Broum
The inner import was dropped during the reorganizing of the database backends in commit 28308078f397d1de36fd0da417ac7da2544ba12d.
2015-05-02Fixed #24693 -- Added label and label_lower property to Model._metaLuis Del Giudice
2015-05-02Moved migration exception classes to shared moduleMarkus Holtermann
Thanks Aymeric Augustin for the review.
2015-04-30Fixed #24725 -- Allowed renaming of target models in ManyToMany relationsMarkus Holtermann
This is a regression caused by introducing rendered migration states in 1aa3e09c2043 and the _meta refactoring in fb48eb05816b. Thanks to Danilo Bargen for reporting the issue and Marten Kenbeek and Tim Graham for triaging the bug and providing the initial test case.
2015-04-28Fixed #24719 -- Restored the ability to use interators as queryset related ↵Aric Coady
object filters.
2015-04-25Fixed #24649 -- Allowed using Avg aggregate on non-numeric field types.Tim Graham
2015-04-25Fixed #24499 -- Dropped support for PostGIS 1.5.Tim Graham
2015-04-25Fixed #24701 -- Converted model manager names to unicode in migrationsMarkus Holtermann
Thanks to Reto Aebersold for reporting the issue and Tim Graham and Claude Paroz for the review.
2015-04-21Fixed #24573 -- Considered new related models for reloadingMarkus Holtermann
Thanks tttomekkk for the report.
2015-04-21Refs #24354 -- Prevented repointing of relations on superclasses when ↵Matthew Wilkes
migrating a subclass's name change The issue was hidden on 1.8+ until #24573 due to a bug inside the model reloading process. Forwardport of patch from ae87ad005f7b62f5fa5a29ef07443fa1bbb9baf0
2015-04-20Fixed #24591 -- Optimized cloning of ModelState objects.Marten Kenbeek
Changed ModelState.clone() to create a shallow copy of self.fields and self.managers.
2015-04-20Fixed #24654 -- Based ordering circular references detection on columns.Simon Charette
Thanks to Elmar Bucher for the report and Tim for the review.
2015-04-20Fixed #22394 -- Refactored built-in datetime lookups to transforms.Jon Dufresne
2015-04-20Refs #24397 -- Sped up model reloading in ProjectState.Marten Kenbeek
Created bulk_update() context manager on StateApps. Sped up unregistering models in reload_models() by using this context mananger.
2015-04-18Removed cases of six.iter* wrapped in a list()Curtis Maloney
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
2015-04-18Fixed #23879 -- Allowed model migration skip based on feature/vendorClaude Paroz
Thanks Carl Meyer for the report and review, and Tim Graham for the review.
2015-04-17Fixed #24595 -- Prevented loss of null info in MySQL field alterationClaude Paroz
Thanks Simon Percivall for the report, and Simon Charette and Tim Graham for the reviews.
2015-04-16Fixed #24605 -- Fixed incorrect reference to alias in subquery.Anssi Kääriäinen
Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
2015-04-16Fixed #24615 -- ordering by expression not part of SELECTAnssi Kääriäinen
Fixed queries where an expression was used in order_by() but the expression wasn't in the query's select clause (for example the expression could be masked by .values() call) Thanks to Trac alias MattBlack85 for the report.
2015-04-14Fixed #24277 -- Added exception when dict used in QuerySet filteringAlex Wilson
2015-04-14Fixed #24637 -- Fixed database introspection with SQLite 3.8.9.peterfarrell
2015-04-13Fixed #24611 -- Fixed update() crash with related UUID pk object.Jay Wineinger
2015-04-10Fixed #24514 -- Made migration writer omit models import if it's unused.Christopher Luc
2015-04-09Fixed #24609 -- Made ConcatPair use CONCAT_WS() on MySQLAdam Chainz
2015-04-09Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields.Tim Graham
Thanks Anssi Kääriäinen for review.
2015-04-07Fixed #24513 -- Made sure a model is only rendered once during reloadsPatryk Zawadzki
This also prevents state modifications from corrupting previous states. Previously, when a model defining a relation was unregistered first, clearing the cache would cause its related models' _meta to be cleared and would result in the old models losing track of their relations.
2015-04-06Fixed #24584 -- Fixed microsecond handling with older MySQLdbJon Dufresne
2015-04-05Fixed #24278 -- Fixed serialization of migration operations.Marten Kenbeek
Fixed MigrationWriter.serialize() to correctly handle migration operations by utilizing OperationWriter. Thanks Piotr Maliński for the report.
2015-04-05Refs #24278 -- Allowed multi-line serializations in OperationWriter.Marten Kenbeek
Changed OperationWriter to support multi-line serialized values with correct indentation.
2015-04-03Cleaned up use of context manager in SQLite schema editorAlex Hill
2015-04-02Fixed #24566 -- Added support for serializing timedeltaBaptiste Mispelon
Thanks to knbk for the report.
2015-04-01Refs #24554 -- Prevented rendering of unused migrationsMarkus Holtermann
Thanks Claude Paroz and Tim Graham for the review
2015-04-01Fixed #24554 -- Sped up migrations by rendering initial apps when they are ↵Markus Holtermann
first needed Calling Migration.mutate_state() now also allows to do in_place mutations in case an intermediate state is thrown away later. Thanks Anssi Kääriäinen for the idea, Ryan Hall for parts of the patch, and Claude Paroz and Tim Graham for the review
2015-03-30Removed duplicate attribute in MySQL DatabaseSchemaEditor.Andriy Sokolovskiy