question about accessing related_content in templates

25 views
Skip to first unread message

Martey Dodoo

unread,
Jul 15, 2013, 7:12:43 AM7/15/13
to armstr...@googlegroups.com
The README for armstrong.apps.related_content suggests using the "related"
field with models in order to access related_content in templates:

> {{ my_article.related.articles.0 }}

Trying to use this syntax in the Armstrong demo site does not seem to work
properly. Is the model required to have a RelatedObjectsField named "related"
in order for this to work? Is there an easy way to access a model's related
content in templates if it does not have such a field?

--
Martey Dodoo
https://marteydodoo.com

Reply all
Reply to author
Forward
0 new messages