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 %} {% 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…
Cancel
Save