Commit a6082dc1 authored by gijs's avatar gijs
Browse files

Test if a trajectory has a produser

parent 0f4b817d
......@@ -842,7 +842,10 @@ class Trajectory (Model):
# if self.title.value:
# return os.path.join(SITE_URL, self.prefix, '{}.html'.format(keyFilter(self.title.value)))
# else:
return self.produser.target.link
if self.produser.resolved:
return self.produser.target.link
else:
return None
class Reflection (Model):
contentType = 'reflection'
......
......@@ -21,7 +21,7 @@
</a>
</li>
{% endfor %}
{% if relflections %}
{% if reflections %}
<a href="#reflections">Reflections</a>
{% endif %}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment