mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #25354 -- Added class/app_label interpolation for related_query_name.
This commit is contained in:
parent
5453aa66cf
commit
f05722a08a
6 changed files with 63 additions and 18 deletions
|
@ -1344,6 +1344,9 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
|
|||
# That's now the name of the reverse filter
|
||||
Article.objects.filter(tag__name="important")
|
||||
|
||||
Like :attr:`related_name`, ``related_query_name`` supports app label and
|
||||
class interpolation via :ref:`some special syntax <abstract-related-name>`.
|
||||
|
||||
.. attribute:: ForeignKey.to_field
|
||||
|
||||
The field on the related object that the relation is to. By default, Django
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue