Commit 03960018 authored by Simon Charette's avatar Simon Charette
Browse files

[1.7.x] Corrected a usage example of `related_query_name`.

Thanks to Petr Glotov for spotting this.

Backport of 05a8cef4 from master
parent 022fdb2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1173,7 +1173,7 @@ define the details of how the relation works.
            name = models.CharField(max_length=255)

        # That's now the name of the reverse filter
        article_instance.filter(tag__name="important")
        Article.objects.filter(tag__name="important")

.. attribute:: ForeignKey.to_field