summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2015-12-10Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using ↵Federico Frenguelli
AlterField. Thanks to Emanuele Palazzetti for the help.
2015-12-09Fixed #25896 -- Fixed state bug in ↵Amos Onn
SeparateDatabaseAndState.database_backwards().
2015-12-05Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance.Attila Tovt
2015-12-04Fixed #13774 -- Added models.Field.rel_db_type().Alexander Sosnovskiy
2015-12-03Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions.Raphaël Hertzog
When Django reraises an exception, it sets the __cause__ attribute even in Python 2, mimicking Python's 3 behavior for "raise Foo from Bar". However, Python 3 also ensures that all exceptions have a __traceback__ attribute and thus the "traceback2" Python 2 module (backport of Python 3's "traceback" module) relies on the fact that whenever you have a __cause__ attribute, the recorded exception also has a __traceback__ attribute. This is breaking testtools which is using traceback2 (see https://github.com/testing-cabal/testtools/issues/162). This commit fixes this inconsistency by ensuring that Django sets the __traceback__ attribute on any exception stored in a __cause__ attribute of a reraised exception.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-26Fixed #25807 -- Instructed the migration writer about lazy objects.Simon Charette
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation and Tim for the review.
2015-11-24Fixed #25767 -- Fixed data truncation possibility with ↵George Marshall
Positive(Small)IntegerField on MySQL.
2015-11-21Fixed #13427 -- Made auto-m2m verbose names translatableClaude Paroz
2015-11-21Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey ↵Tim Graham
w/on_delete=SET_NULL.
2015-11-20Fixed #25551 -- Fixed migration operations ordering when adding fields and a ↵Ana Vojnovic
unique_together constraint.
2015-11-19Fixed #25764 -- Added support for serialization of enum.Enum in migrations.Andrei Fokau
Thanks Tim Graham for the review.
2015-11-17Simplified lists creation in three places.Dmitry Dygalo
2015-11-14Fixed #25750 -- Made Options._expire_cache() fasterPatryk Zawadzki
Avoided unnecessary list operations and delattr() calls that result in an exception being raised as it causes call frame reconstruction which is very costly, especially so in a function that is called millions of times.
2015-11-13Refs #25196 -- Fixed incorrect argument order in test database creation.Tim Graham
2015-11-11Fixed #25723 -- Made related field checks lookup against their local apps.Simon Charette
2015-11-11Removed gendered pronoun in a code comment.Razzi Abuissa
2015-11-11Refs #25693 -- Avoided redundant calls to get_fields() in `to_attr` validation.Simon Charette
2015-11-11Fixed #25730 -- Made Model.__str__() always return str instances.Simon Charette
Thanks to Kevin Turner for the report and Tim for the review.
2015-11-10Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.Ian Foote
Thanks to Jamie Matthews for finding and explaining the bug.
2015-11-09Fixed #24576 -- Made deletion of related objects deterministic.Laura Feier
2015-11-07Simplified dict initialization in two places.Dmitry Dygalo
2015-11-02Refs #25629 -- Added `arity` class attribute to `Func` expressionsSergey Fedoseev
2015-10-28Refs #25618 -- Removed detection of south migrations in loader.Tim Graham
It doesn't seem relevant for anyone upgrading to Django 1.10 and beyond.
2015-10-27Fixed #25609 -- Fixed regression in related field nested lookup error.Ian Foote
2015-10-27Revert "Fixed #25417 -- Added a field check for invalid default values."Simon Charette
This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69.
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-10-26Fixed #25611 -- Standardized descriptor signatures.Tim Graham
2015-10-21Fixed #25470 -- Avoided unnecessary, expensive DATETIME typecast on MySQL.Mariusz Felisiak
2015-10-19Moved an inner function in db.migrations.state to avoid redefinition.Simon Charette
2015-10-19Refs #18012 -- Accounted for reverse proxy relations in migrations.Simon Charette
Thanks to Markus for the suggestion and Tim for the review.
2015-10-19Fixed #25563 -- Cached deferred models in their proxied model's _meta.apps.Simon Charette
Thanks to Andriy Sokolovskiy for the report and Tim Graham for the review.
2015-10-17Fixed #25517 -- Made Concat function idempotent on SQLite.Josh Smeaton
2015-10-16Fixed #25560 -- Made empty string related_name invalid.Simon Charette
Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review.
2015-10-14Fixed #25506 -- Allowed filtering over a RawSQL annotation.Antoine Catton
Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>
2015-10-14Refs #25535 -- Minor edits to ForeignObject check changes.Tim Graham
2015-10-12Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton
Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model.
2015-10-12Refs #18012 -- Removed the now unused proxied_children model option.Simon Charette
Thanks to Tim for the review.
2015-10-12Refs #18012 -- Made proxy and concrete model reverse fields consistent.Simon Charette
Prior to this change proxy models reverse fields didn't include the reverse fields pointing to their concrete model.
2015-10-12Fixed #23076, #25505 -- Fixed deletion of intermediate proxy models.Simon Charette
Thanks to James Murty for his work on an alternate patch.
2015-10-12Refs #18012 -- Removed special casing for proxy models deletion.Simon Charette
This isn't required anymore now that reverse foreign keys from proxy models are propagated to their concrete model.
2015-10-12Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.Simon Charette
Thanks to Anssi for the review.
2015-10-10Fixed #24687 -- Added select_related() validation for nested non-relational ↵Tim Graham
fields. The removed test was added in the original select_related() validation patch (45d4e43d2d25b902e3821b612209afa951a8bcb8), but there doesn't seem to be any reason for it. Thanks Claude Paroz for help and review.
2015-10-09Fixed #22705 -- Fixed QuerySet.bulk_create() on models without any fields on ↵Tim Graham
Oracle. Fixed on other backends by 134ca4d438bd7cbe8f0f287a00d545f96fa04a01. Thanks Mariusz Felisiak for the solution.
2015-10-09Fixed #14368 -- Allowed setting a reverse OneToOne relation to None.Tim Graham
2015-10-06Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.Mariusz Felisiak
2015-10-06Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.Tim Graham
2015-10-06Refs #12118 -- Allowed "mode=memory" in SQLite test database names.Riccardo Magliocchetti
2015-10-05Removed obsolete (since Python 2.3) __safe_for_unpickling__ attribute.Tim Graham
2015-10-01Fixed #21042 -- Allowed accessing FileDescriptor on the model class.Tim Graham
This is consistent with ability to reference other descriptors on the model class (5ef0c03ae9aca99289737ba6d88a371ad95cf432).