Perhaps the blog_post_list.html file might be of help. In mine, I find this:
{% with blog_post.categories.all as categories %}
  {% if categories %}
    ...
    {% for category in categories %}
    <a href="{% url "blog_post_list_category" category.slug %}">{{ category 
}}</a>{% if not forloop.last %}, {% endif %}
    {% endfor %}
  {% endif %}
{% endwith %}

That hopefully gives an idea how to fetch a category.

And remember, you wouldn't expect to find a category object or objects if 
one isn't already created.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to