mirror of
https://github.com/django/django.git
synced 2025-03-25 08:40:45 +00:00
[1.7.x] Corrected a usage example of related_query_name
.
Thanks to Petr Glotov for spotting this. Backport of 05a8cef428 from master
This commit is contained in:
parent
022fdb2ac4
commit
0396001830
@ -1173,7 +1173,7 @@ define the details of how the relation works.
|
|||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
|
|
||||||
# That's now the name of the reverse filter
|
# 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
|
.. attribute:: ForeignKey.to_field
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user