From 7377e143bfa9984ab334b8b6efa73c26607e527f Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 28 Nov 2015 23:40:50 +0100 Subject: [PATCH] is_staff je asi lepsi nez is_authenticated. --- seminar/templates/seminar/novinky.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seminar/templates/seminar/novinky.html b/seminar/templates/seminar/novinky.html index f7aa8dfd..0ac99356 100644 --- a/seminar/templates/seminar/novinky.html +++ b/seminar/templates/seminar/novinky.html @@ -1,10 +1,10 @@ {% for novinka in object_list %} {# pripravene div-y na stylovani#}
- {% if not novinka.zverejneno and user.is_authenticated %} + {% if not novinka.zverejneno and user.is_staff %}
{% endif %} - {% if novinka.zverejneno or user.is_authenticated %} + {% if novinka.zverejneno or user.is_staff %} {# datum #}
{{novinka.datum}}
{# text #} @@ -30,7 +30,7 @@

{% endif %} - {% if not novinka.zverejneno and user.is_authenticated %} + {% if not novinka.zverejneno and user.is_staff %}
{% endif %}