is_staff je asi lepsi nez is_authenticated.

This commit is contained in:
Tomas "Jethro" Pokorny 2015-11-28 23:40:50 +01:00
parent fd03563ad6
commit 7377e143bf

View file

@ -1,10 +1,10 @@
{% for novinka in object_list %}
{# pripravene div-y na stylovani#}
<div>
{% if not novinka.zverejneno and user.is_authenticated %}
{% if not novinka.zverejneno and user.is_staff %}
<div class="mam-org-only">
{% endif %}
{% if novinka.zverejneno or user.is_authenticated %}
{% if novinka.zverejneno or user.is_staff %}
{# datum #}
<div><b>{{novinka.datum}}</b></div>
{# text #}
@ -30,7 +30,7 @@
</p>
</div>
{% endif %}
{% if not novinka.zverejneno and user.is_authenticated %}
{% if not novinka.zverejneno and user.is_staff %}
</div>
{% endif %}
</div>