Browse Source

aded author to post_list

newsletter
Esther Kleinhenz 6 years ago
parent
commit
a1ff9def5c
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      application/templates/post_list.html

+ 8
- 4
application/templates/post_list.html 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 %}

Loading…
Cancel
Save