Fixed #25354 -- Added class/app_label interpolation for related_query_name.

This commit is contained in:
James Pulec 2015-09-29 10:52:26 -07:00 committed by Tim Graham
parent 5453aa66cf
commit f05722a08a
6 changed files with 63 additions and 18 deletions

View file

@ -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