| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2025-07-23 | Removed double spaces after periods and within phrases. | Sarah Boyce | |
| 2023-09-08 | Fixed #34816 -- Fixed GenericForeignKey crash when checking cache for ↵ | Oguzhan Akan | |
| primary keys with different types. | |||
| 2023-04-18 | Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵ | David Wobrock | |
| relation on PostgreSQL. | |||
| 2022-11-18 | Fixed #26261 -- Fixed queryset crash when excluding reverse GenericRelation. | roman_p | |
| Thanks Amir Hadi for the report. | |||
| 2022-04-21 | Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ↵ | sarahboyce | |
| ValueError. This aligns to the behaviour of OneToOneField and ForeignKey fields. Thanks Jonny Park for the initial patch. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-07-08 | Fixed isolation of GenericRelationTests.test_filter_targets_related_pk(). | Mariusz Felisiak | |
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2018-08-10 | Fixed #29653 -- Fixed missing related_query_name reverse accessor if ↵ | Ramiro Morales | |
| GenericRelation is declared on an abstract base model. Regression in 4ab027b94409e6415b774797bf9d3593da9d9ea8. Thanks Lauri Kainulainen for the report. | |||
| 2018-03-12 | Fixed #28988 -- Fixed queries when a GenericRelation is used with ↵ | robwa | |
| multi-table inheritance. | |||
| 2017-12-08 | Refs #28856 -- Added test for caching of a GenericForeignKey pointing to a ↵ | Morgan Wahl | |
| model that uses more than one level of MTI. Forwardport of test and release notes of 35222035029863f95769e2e59beeeb953d125689 from stable/1.11.x | |||
| 2017-11-30 | Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵ | Simon Charette | |
| pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5. | |||
| 2017-07-21 | Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy ↵ | Rachel Tobin | |
| model. | |||
| 2017-01-19 | Refs #23919 -- Removed __nonzero__() methods (for Python 2). | Simon Charette | |
| Thanks Tim for the review. | |||
| 2016-11-14 | Fixed #27463 -- Fixed E741 flake8 warnings. | Ramin Farajpour Cami | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-09-13 | Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵ | Mads Jensen | |
| assertSequenceEqual(). | |||
| 2016-06-28 | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | |
| Also removed try/except/fail antipattern that hides exceptions. | |||
| 2016-03-28 | Sorted single letter imports per the latest version of isort. | Tim Graham | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-03-25 | Refs #24267 -- Implemented lookups for related fields | Anssi Kääriäinen | |
| Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path(). | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-01-06 | Fixed #12663 -- Formalized the Model._meta API for retrieving fields. | Daniel Pyrathon | |
| Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch! | |||
| 2014-12-17 | Fixed #24002 -- GenericRelation filtering targets related model's pk | Anssi Kääriäinen | |
| Previously Publisher.objects.filter(book=val) would target book.object_id if book is a GenericRelation. This is inconsistent to filtering over reverse foreign key relations, where the target is the related model's primary key. | |||
| 2014-12-15 | Corrected test assertion from refs #21403. | Tim Graham | |
| 2014-11-03 | Fixed #23620 -- Used more specific assertions in the Django test suite. | Berker Peksag | |
| 2014-08-07 | Fixed #22982 -- Added GenericRelatedObjectManager.__str__. to prevent crash. | Jacob Haslehurst | |
| Thanks bendavis78 for the report. Forwardport of 29585e9b6a from stable/1.7.x | |||
| 2014-07-16 | PEP8 cleanup | Anssi Kääriäinen | |
| 2014-07-16 | Fixed #22998 -- Updated the fast_delete logic for GFKs | Gavin Wahl | |
| 2014-03-05 | Fixed #22207 -- Added support for GenericRelation reverse lookups | Gabe Jackson | |
| GenericRelation now supports an optional related_query_name argument. Setting related_query_name adds a relation from the related object back to the content type for filtering, ordering and other query operations. Thanks to Loic Bistuer for spotting a couple of important issues in his review. | |||
| 2013-11-25 | Fixed #21403: Corrected test code | Shai Berger | |
| A test for annotations incorrectly assumed that the first instance (in the test) of a model using AutoField for PK will always get pk=1. The test was changed to compare against actual instance id instead. | |||
| 2013-11-16 | Fixed #21428 -- editable GenericRelation regression | Anssi Kääriäinen | |
| The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue. | |||
| 2013-11-05 | Fixed #10461 -- bug in generic relation + annotate() case | Anssi Kääriäinen | |
| This issue was fixed when the contenttype restriction was moved from where clause to the join clause. So, this is tests only addition. | |||
| 2013-10-23 | Fixed #21298 -- Fixed E301 pep8 warnings | Alasdair Nicol | |
| 2013-06-06 | Fixed #20564 -- Generic relations exclude() regression | Anssi Kääriäinen | |
| The patch for #19385 caused a regression in certain generic relations .exclude() filters if a subquery was needed. The fix contains a refactoring to how Query.split_exclude() and Query.trim_start() interact. Thanks to Trac alias nferrari for the report. | |||
| 2013-06-05 | PEP 8 cleanup | Anssi Kääriäinen | |
| 2013-05-20 | Fixed #20378 -- regression in GenericRelation on abstract model | Anssi Kääriäinen | |
| When a GenericRelation was defined on abstract model, queries on childs of the abstract model didn't work. The problem was in the way fields and in particular field.rel was copied from models to their children. The regression was likely caused by #19385. Thanks to Gavin Wahl for spotting the regression. | |||
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
