aded author to post_list
This commit is contained in:
parent
42d69dfe44
commit
a1ff9def5c
@ -7,10 +7,14 @@
|
|||||||
<a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
|
<a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<p>{{ post.text|linebreaks }}</p>
|
<p>{{ post.text|linebreaks }}</p>
|
||||||
{% for tag in post.tags.all %}
|
<p>
|
||||||
<p>{{ tag.name }}</p>
|
{% for tag in post.tags.all %}
|
||||||
{% endfor %}
|
<a href="">{{ tag.name }}, </a>
|
||||||
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ post.author }}
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %} {% endblock %}
|
{% endfor %} {% endblock %}
|
Loading…
x
Reference in New Issue
Block a user