summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-17Fixed db.utils.load_backend() on non-ASCII paths.Tim Graham
2015-07-15Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵Tim Graham
field.
2015-07-15Filtered out 'base' from database backend choices error message.Tim Graham
2015-07-14Fixed #24716 -- Deprecated Field._get_val_from_obj()Thomas Stephenson
The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method.
2015-07-13Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov
The new attribute is checked when the `migrate --fake-initial` option is used. initial will be set to True for all initial migrations (this is particularly useful when initial migrations are split) as well as for squashed migrations.
2015-07-13Fixed #24923 -- errored out nicely when using aggregates in order_by()Anssi Kääriäinen
2015-07-09Fixed #25081 -- Prevented DISTINCT ON ordering from being cleared in get().Simon Charette
Thanks to pdewacht for the patch.
2015-07-02Fixed #25054 -- Added app_label to swapped model AttributeErrorChris Lamb
2015-07-02Fixed #24997 -- Enabled bulk_create() on proxy modelsWilliam Schwartz
2015-07-02Fixed #25040 -- Fixed migrations state crash with GenericForeignKeyKai Richard Koenig
2015-06-30Fixed #18247 -- Added cast to NUMERIC for Decimals on sqliteMichael Tänzer
On sqlite the SUM() of a decimal column doesn't have a NUMERIC type so when comparing it to a string literal (which a Decimal gets converted to in Django) it is not compared as expected.
2015-06-30Fixed #23658 -- Provided the password to PostgreSQL dbshell commandJean-Michel Vourgère
The password from settings.py is written in a temporary .pgpass file file whose name is given to psql using the PGPASSFILE environment variable.
2015-07-01Removed datetime_cast_sql, which is never overridden or used anywhere in Django.Shai Berger
Thanks Tim Graham for review.
2015-06-30Fixed #21803 -- Added support for post-commit callbacksAndreas Pelme
Made it possible to register and run callbacks after a database transaction is committed with the `transaction.on_commit()` function. This patch is heavily based on Carl Meyers django-transaction-hooks <https://django-transaction-hooks.readthedocs.org/>. Thanks to Aymeric Augustin, Carl Meyer, and Tim Graham for review and feedback.
2015-06-30Fixed #24911 -- Made BaseManager.get_queryset() allow custom queryset args.Jonas Degrave
2015-06-29Removed unused condition for the abstract model in ensure_default_manager()Andriy Sokolovskiy
2015-06-29Refs #20203 -- Allowed adding custom default manager to the model stateAndriy Sokolovskiy
If the only manager on the model is the default manager defined by Django (`objects = models.Manager()`), this manager will not be added to the model state. If it is custom, it needs to be passed to the model state.
2015-06-29Fixed #23791 -- Corrected object type check for pk__in=qsAnssi Kääriäinen
When the pk was a relation field, qs.filter(pk__in=qs) didn't work. In addition, fixed Restaurant.objects.filter(place=restaurant_instance), where place is an OneToOneField and the primary key of Restaurant. A big thank you to Josh for review and to Tim for review and cosmetic edits. Thanks to Beauhurst for commissioning the work on this ticket.
2015-06-28Used field.clone() where applicableMarkus Holtermann
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-27Fixed #24887 -- Removed one-arg limit from models.aggregateGreg Chapple
2015-06-26Fixed #25016 -- Reallowed non-ASCII values for ForeignKey.related_name on ↵薛丞宏
Python 3.
2015-06-24Refs #25002 -- Supported textual to temporal column alteration on Oracle.Simon Charette
Thanks to Tim Graham for the report and Shai Berger for the review.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-22Fixed #25002 -- Used PostgreSQL column type alteration USING clause.Simon Charette
Thanks to Dirk Uys for the report.
2015-06-20Changed Oracle's test-database-creation to use an explicit main-db-connectionShai Berger
rather than just relying on manipulation of settings to determine which invocation of connection.cursor() opens a connection to the test database and which opens a connection to the main database. Thanks Aymeric Augustin for motivation and Tim Graham for review.
2015-06-19Fixed #23804 -- Added RasterField for PostGIS.Daniel Wiesmann
Thanks to Tim Graham and Claude Paroz for the reviews and patches.
2015-06-19Fixed #24940 -- Made model managers hashableMarkus Holtermann
Thanks Federico Jaramillo Martínez for the report and Tim Graham for the test and review.
2015-06-18Fixed #24873 -- Prevented nested Prefetch objects from being overwritten.Gagaro
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-16Sorted reduce methods in migration optimizerMarkus Holtermann
Thanks Tim Graham for the review.
2015-06-16Fixed #24828 -- Allowed migration optimization across AlterFooTogetherMarkus Holtermann
The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review.
2015-06-15Fixed #24972 -- Fixed removing unique_together indexes on MySQL.Adam Brenecki
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-06-15Removed django.utils.functional.total_ordering()Tim Graham
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-06-15Fixed #24912 -- Fixed prefetch_related failure for UUIDField primary keysBrian King
This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key.
2015-06-14Changed reduce method lookup in migration optimizer to dictMarkus Holtermann
Thanks Andrew Godwin and Simon Charette for the review.
2015-06-14Explicitly imported migration operations in optimizerMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-14Optimized duplicate AlterModelTable/AlterFooTogether/AlterOWRTMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-14Took AlterOrderWithRespectTo into account when optimizing migrationsMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-06Fixed #24859 -- Made QuerySet.get() with UUIDField raise TypeError on bad value.Cole Maclean
For consistency with AutoField.
2015-06-06Imported sqlite3 instead of _sqlite3Sagar Mittal
adapt and ProgrammingError are both available on the sqlite3 module. There's no need to import the internal _sqlite3 module.
2015-06-06Fixed #24744 - Fixed relabeled_clone for the TransformAndriy Sokolovskiy
2015-06-05Fixed #24924 -- Join promotion for multiple Case expressionsMark Lavin
2015-06-05Minor edits to Greatest/Least docs; refs #24767.Tim Graham
2015-06-05Refs #24833 -- Forwardported some of "Fixed Case expressions with exclude()."Andriy Sokolovskiy
Partial forwardport of 469f1e362bb9670b174b37da9edd4631aff7badb from stable/1.8.x as the issue was already fixed in master.
2015-06-05Fixed #24767 -- Added Greatest and Least expressionsIan Foote
Greatest and Least are row-level Function versions of Min and Max.
2015-06-05Fixed #19542: Made mirroring databases for tests work with OracleShai Berger
No tests are provided because there is no sane way to test database settings within the Django test suite. Thanks Aymeric Augustin for review.