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 %}
|
||||
{# 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>
|
||||
|
|
Loading…
Reference in a new issue