Z aktuálních zadání vyřazena témata
This commit is contained in:
parent
a0bf58165d
commit
4b61ba9894
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
Termín odeslání {{ac.cislo}}. série: {{ac.datum_deadline}}
|
||||
{#TODO a co speciální deadline pro účast na soustředění? #}
|
||||
|
||||
{% for problem in ac.zadane_problemy.all %}
|
||||
{% for problem in zadani %}
|
||||
{# TODO použít {{problem.kod_v_rocniku}} ? vrací 4.u1 místo 4.1 #}
|
||||
<h3>{{problem.cislo_zadani.cislo}}.{{problem.kod}} {{problem.nazev}} ({{problem.body}}b)</h3>
|
||||
{% autoescape off %}{{problem.text_zadani}}{% endautoescape %}
|
||||
|
@ -21,4 +21,3 @@
|
|||
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ from . import utils
|
|||
def AktualniZadaniView(request):
|
||||
nastaveni = get_object_or_404(Nastaveni)
|
||||
return render(request, 'seminar/zadani/AktualniZadani.html',
|
||||
{'nastaveni' : nastaveni,
|
||||
{'nastaveni': nastaveni,
|
||||
'zadani': nastaveni.aktualni_cislo.zadane_problemy.exclude(typ=Problem.TYP_TEMA),
|
||||
},
|
||||
)
|
||||
### Titulni strana
|
||||
|
|
Loading…
Reference in a new issue