orgorozcestnik: nabuseni statickych odkazu, pokus o nejake lehke dynamicke veci - rozdelane
This commit is contained in:
parent
11fe593c0e
commit
ab4148e2e2
3 changed files with 14 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
</h1>
|
||||
|
||||
{% for clanek in object_list %}
|
||||
{% with clanek.cislo_zadani.rocnik.rocnik as rocnik %}
|
||||
{% with clanek.cislo.rocnik.rocnik as rocnik %}
|
||||
{% ifchanged rocnik %}
|
||||
{% if not forloop.first %}</ul>{% endif %}
|
||||
<h2>{{ rocnik }}. ročník</h2>
|
||||
|
|
|
@ -90,6 +90,9 @@ urlpatterns = [
|
|||
|
||||
path('org/vloz_body/<int:tema>/',
|
||||
staff_member_required(views.VlozBodyView.as_view()),name='seminar_org_vlozbody'),
|
||||
# příprava na nestatický orgorozcestník
|
||||
path('org/rozcestnik',
|
||||
staff_member_required(views.OrgoRozcestnikView.as_view()),name='seminar_org_rozcestnik'),
|
||||
path('prihlaska/',views.prihlaskaView, name='seminar_prihlaska'),
|
||||
path('login/', views.LoginView.as_view(), name='login'),
|
||||
path('logout/', views.LogoutView.as_view(), name='logout'),
|
||||
|
|
|
@ -873,6 +873,16 @@ def oldObalkovaniView(request, rocnik, cislo):
|
|||
{'cislo': cislo, 'problemy': problemy, 'reseni': reseni}
|
||||
)
|
||||
|
||||
### Orgostránky
|
||||
|
||||
def OrgoRozcestnikView(request):
|
||||
''' Zobrazí organizátorský rozcestník.'''
|
||||
posledni_soustredeni = Soustredeni.objects.order_by('-datum_konce').first()
|
||||
|
||||
template_name = 'seminar/orgorozcestnik.html'
|
||||
content_type = 'text/plain; charset=UTF8'
|
||||
#XXX
|
||||
|
||||
### Tituly
|
||||
|
||||
def TitulyView(request, rocnik, cislo):
|
||||
|
@ -983,7 +993,6 @@ class ClankyResitelView(generic.ListView):
|
|||
skupina.sort(key=lambda clanek: clanek.kod_v_rocniku())
|
||||
for clanek in skupina:
|
||||
queryset.append(clanek)
|
||||
#XXX
|
||||
|
||||
#zadani__rocnik').order_by('-cislo_zadani__rocnik__rocnik', 'kod')
|
||||
|
||||
|
|
Loading…
Reference in a new issue