Merge pull request #83 from jedie/author_name
Display username if full name not set
This commit is contained in:
commit
9f7584c161
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
<ul class="post-detail">
|
<ul class="post-detail">
|
||||||
{% if post.author %}
|
{% if post.author %}
|
||||||
<li>
|
<li>
|
||||||
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{{ post.author.get_full_name }}</a>
|
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{% if post.author.get_full_name %}{{ post.author.get_full_name }}{% else %}{{ post.author }}{% endif %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue