title: Lektor CMS how to get related objects of a model instead of plain list?
body: <p>I am using <a href="http://getlektor.com" rel="nofollow">Lektor CMS</a> for my blog. I want to implement a categories functionality as said in <a href="https://www.getlektor.com/docs/guides/categories/" rel="nofollow">docs</a>. I have a <code>blog-post</code> model with <code>categories</code> field:</p>
  
  <pre><code>[fields.categories]
  label = Категории
  type = checkboxes
  source = site.query('/categories')
  </code></pre>
  
  <p>As you notice, I'm using Russian language, so the category name maybe <code>Кодинг</code> and slug (directory name) may be <code>Coding</code>.</p>
  
  <p>The problem is that when i access to the categories of blog-post I get plain list: <code>[u'Coding']</code> instead of list of objects which I can use to output the name in Russian and generate an url in English, something like <code>/blog/category/coding</code>. </p>
  
  <p>I expect to be able to get such html:</p>
  
  <pre><code>{% for category in post.categories %}
      &lt;a href="{{ category|url }}"&gt;{{ category.name }}&lt;/a&gt;
  {% endif %}
  </code></pre>
  
  <p>But it is not working. How can I fix this?</p>