aded author to post_list

This commit is contained in:
Esther Kleinhenz 2018-08-18 17:00:50 +02:00
parent 42d69dfe44
commit a1ff9def5c

View File

@ -7,10 +7,14 @@
<a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
</h1>
<p>{{ post.text|linebreaks }}</p>
{% for tag in post.tags.all %}
<p>{{ tag.name }}</p>
{% endfor %}
<p>
{% for tag in post.tags.all %}
<a href="">{{ tag.name }}, </a>
{% endfor %}
</p>
<p>
{{ post.author }}
</p>
</div>
{% endfor %} {% endblock %}