summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2015-09-07Fixed typos in django/db/models/query.py docstrings.Nick Pope
2015-09-05Fixed #24525 -- Fixed AssertionError in some complex queries.Tim Graham
Thanks Anssi Kääriäinen for providing the solution.
2015-09-04Fixed #19263 -- Fixed crash when filtering using __in and an empty QuerySet.Tim Graham
Thanks Marcin Biernat for the initial patch and tests.
2015-09-03Fixed #25058 -- Added GenericRelations with related_query_name to the ↵sarthakmeh
admin's delete confirmation page.
2015-09-03Fixed #25335 -- Fixed regression where QuerySet.iterator() didn't return an ↵Gavin Wahl
iterator.
2015-09-01Removed obsolete TODO about moving CommaSeparatedIntegerField into contrib.Tim Graham
2015-09-01Fixed #25320 -- Reverted ManyToManyField.null to False for backwards ↵Tim Graham
compatibility. Thanks Tom Christie for the report and review.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-31Fixed #25252 -- Added friendly error message on incorrect .select_related() useY3K
Using select_related() after .values() or .values_list() is not possible because .values() or .values_list() already got the values they need.
2015-08-27Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey.Alex Hill
2015-08-27Fixed #24590 -- Cached calls to swappable_setting.Markus Holtermann
Moved the lookup in Field.swappable_setting to Apps, and added an lru_cache to cache the results. Refs #24743 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric Augustin and Tim Graham for the review.
2015-08-25Fixed #14217 -- Added validation for field name collision when using model ↵sarthakmeh
inheritance.
2015-08-20Fixed #24951 -- Fixed AssertionError in delete queries involving a ↵Tim Graham
foreign/primary key. Thanks Anssi Kääriäinen for help.
2015-08-15Fixed #24986 -- Added support for annotations in DISTINCT queries.Valentina Mukhamedzhanova
2015-08-15Fixed #25064 -- Allowed empty join columns.Alex Hill
2015-08-14Made Options.get_base_chain() always return a list.Valentina Mukhamedzhanova
2015-08-12Fixed #25172 -- Fixed check framework to work with multiple databases.Ion Scerbatiuc
2015-08-10Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()Tim Graham
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
2015-08-03Removed unused Field.get_flatchoices() method.Tim Graham
Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0). Thanks Andy Baker for the report.
2015-07-28Adjusted SQLCompiler.get_order_by()'s docstring return value.risicle
2015-07-28Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible.Tim Graham
Thanks Loic Bistuer for review.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-27Fixed #25095 -- Fixed annotate() + values() group by bugMitchell Kotler
Thanks Josh Smeaton for help on the tests.
2015-07-23Fixed #12768 -- Fixed QuerySet.raw() regression on FK with custom db_column.Matt Johnson
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-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 #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-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 #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-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-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-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
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-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-06-15Removed django.utils.functional.total_ordering()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-06Fixed #24859 -- Made QuerySet.get() with UUIDField raise TypeError on bad value.Cole Maclean
For consistency with AutoField.
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-04Fixed #22316 -- Added time filters to TimeField on SQLite.Matthew Somerville
This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).