{% extends "base.html" %} {% block main %}

{{ news.title }} (PDF)

{{ news.text|safe }}
Dodane: {{ news.date|date:"Y.m.d H:i" }}, Kategorie: {% for i in news.category.all %} {{ i.name }}{% if not forloop.last %}, {% endif %} {% endfor %}

Komentarze

{% for c in news.comment_set.all %}
{{ c.text }} ({{ c.date|date:"Y.m.d H:i" }}{% if user.is_superuser %}, Edytuj{% endif %})
{% endfor %}
{{ form.text }}
{% endblock %} {% block title %}Blog | {{ news.title }}{% endblock %}