Friday, August 29, 2014

Re: related_query_name - what is it?

The documentation is wrong, it should be:

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

I'll commit a documentation admonition and give you credit.

Thanks for spotting this!

Le vendredi 29 août 2014 22:27:38 UTC-4, Petr Glotov a écrit :
Correction: first sentence of the question should read:
However, a model instance doesn't have filter() method. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8ec56a2f-2619-4683-b506-45f62b8d7ad1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment