is_staff je asi lepsi nez is_authenticated.
This commit is contained in:
parent
fd03563ad6
commit
7377e143bf
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
{% for novinka in object_list %}
|
{% for novinka in object_list %}
|
||||||
{# pripravene div-y na stylovani#}
|
{# pripravene div-y na stylovani#}
|
||||||
<div>
|
<div>
|
||||||
{% if not novinka.zverejneno and user.is_authenticated %}
|
{% if not novinka.zverejneno and user.is_staff %}
|
||||||
<div class="mam-org-only">
|
<div class="mam-org-only">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if novinka.zverejneno or user.is_authenticated %}
|
{% if novinka.zverejneno or user.is_staff %}
|
||||||
{# datum #}
|
{# datum #}
|
||||||
<div><b>{{novinka.datum}}</b></div>
|
<div><b>{{novinka.datum}}</b></div>
|
||||||
{# text #}
|
{# text #}
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not novinka.zverejneno and user.is_authenticated %}
|
{% if not novinka.zverejneno and user.is_staff %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue