Browse Source

is_staff je asi lepsi nez is_authenticated.

remotes/origin/upgrade1.9
parent
commit
7377e143bf
  1. 6
      seminar/templates/seminar/novinky.html

6
seminar/templates/seminar/novinky.html

@ -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…
Cancel
Save