summaryrefslogtreecommitdiff
path: root/django/db/models/fields/reverse_related.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #16055 -- Deprecated ↵David Wobrock2023-04-181-0/+7
| | | | get_joining_columns()/get_reverse_joining_columns() methods.
* Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵David Wobrock2023-04-181-0/+3
| | | | relation on PostgreSQL.
* Fixed #34443 -- Fixed filtering by transforms on reverse relations.Mariusz Felisiak2023-03-281-0/+6
| | | Regression in ce6230aa976e8d963226a3956b45a8919215dbd8.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-2/+4
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-26/+71
|
* Fixed #32996 -- Cached PathInfos on relations.Keryn Knight2021-11-031-3/+22
| | | | | | PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration.
* Fixed #32947 -- Fixed hash() crash on reverse M2M relation when ↵Tom Wojcik2021-07-261-1/+1
| | | | | | through_fields is a list. Regression in c32d8f33d8e988a376e44997b8f3606d821f305e.
* Fixed #32951 -- Removed Query.where_class & co.Nick Pope2021-07-221-2/+2
| | | | Unused since 3caf957ed5eaa831a485abcb89f27266dbf3e82b.
* Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.Simon Charette2020-10-051-1/+1
|
* Fixed #31926 -- Fixed recreating queryset with FilteredRelation when using a ↵David-Wobrock2020-10-051-0/+35
| | | | | | | pickled Query. In a pickled join, the join_fields had the same values, but weren't the same object (contrary to when not pickling the QuerySet).
* Fixed #31952 -- Fixed EmptyFieldListFilter crash with reverse relationships.Federico Jaramillo Martínez2020-08-311-0/+1
| | | | Thanks dacotagh for the report.
* Fixed #29919 -- Fixed RelatedOnlyFieldListFilter crash with reverse ↵Dan Moore2019-10-231-2/+6
| | | | relationships.
* Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to ↵zeyneloz2019-08-151-1/+4
| | | | | | | | respect model's Meta.ordering. Regression in 6d4e5feb79f7eabe8a0c7c4b87f25b1a7f87ca0b. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #29835 -- Made RelatedFieldListFilter respect ModelAdmin.ordering.Hasan Ramezani2018-11-141-2/+2
|
* Normalized spelling of "lowercase" and "lowercased".Jon Dufresne2018-09-251-4/+4
|
* Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵Nicolas Delaby2017-09-221-2/+2
| | | | | support. Thanks Anssi Kääriäinen for contributing to the patch.
* Refs #16043 -- Refactored internal fields value cache.Paulo2017-08-101-4/+9
| | | | | | | * Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support.
* Replaced Model._get_pk_val() with pk property.Tim Graham2017-06-051-1/+1
| | | Model.pk was added after _get_pk_val() and many places weren't simplified.
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-2/+1
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-4/+4
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+3
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Removed Field.rel and Field.remote_field.to per deprecation timeline.Tim Graham2017-01-171-11/+0
|
* Replaced smart_* by force_* calls whenever possibleClaude Paroz2016-09-031-2/+2
| | | | | The smart_* version should only be used when a lazy string should keep its lazy status.
* Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()Claude Paroz2016-05-041-7/+0
| | | | Thanks Tim Graham for completing the initial patch.
* Removed unused ForeignObjectRel.get_choices() limit_to_currently_related ↵Tim Graham2016-04-221-10/+4
| | | | | | argument. Unused since its introduction in dc334a2ba8dbf5134d65c97fea2785c3b2294ef5.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-7/+6
|
* Fixed #26230 -- Made default_related_name affect related_query_name.chenesan2016-02-271-5/+0
|
* Fixed #25560 -- Made empty string related_name invalid.Simon Charette2015-10-161-1/+1
| | | | | Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review.
* Documented "rel objects".Aymeric Augustin2015-09-211-0/+11
| | | | | Kept the docstring short because these objects aren't very well defined and they're in the crosshairs of several refactorings.
* Fixed #22341 -- Split django.db.models.fields.related.Aymeric Augustin2015-09-211-0/+304
At 2800 lines it was the largest module in the django package. This commit brings it down to a more manageable 1620 lines. Very small changes were performed to uniformize import style.