From 159901e19de354e7ee11b9b929d5c2be7d8674d8 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 24 Dec 2020 07:43:24 +0100 Subject: [PATCH] =?UTF-8?q?Men=C3=AD=C4=8Dko=20p=C5=99ed=C4=9Bl=C3=A1no=20?= =?UTF-8?q?na=20hled=C3=A1n=C3=AD=20podle=20jmen=20URLs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FIXME: Výsledkovka (a možná pár dalších) jsou pořád ještě podle cesty, místo urlpatternu. --- data/sitetree_new.json | 64 +++++++++++++++++++++--------------------- korektury/urls.py | 4 +-- seminar/urls.py | 4 +-- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/data/sitetree_new.json b/data/sitetree_new.json index 82fc8245..6fb2b7f4 100644 --- a/data/sitetree_new.json +++ b/data/sitetree_new.json @@ -65,8 +65,8 @@ "fields": { "title": "Aktuální
ročník", "hint": "", - "url": "/zadani/aktualni/", - "urlaspattern": false, + "url": "seminar_aktualni_zadani", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -117,8 +117,8 @@ "fields": { "title": "Archiv", "hint": "", - "url": "/archiv/rocniky/", - "urlaspattern": false, + "url": "seminar_archiv_rocniky", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -143,8 +143,8 @@ "fields": { "title": "Přihlásit", "hint": "", - "url": "/login/", - "urlaspattern": false, + "url": "login", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -195,8 +195,8 @@ "fields": { "title": "Organizátoři", "hint": "", - "url": "/co-je-MaM/organizatori/", - "urlaspattern": false, + "url": "organizatori", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -377,8 +377,8 @@ "fields": { "title": "Články", "hint": "", - "url": "/clanky/resitel/", - "urlaspattern": false, + "url": "clanky_resitel", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -455,8 +455,8 @@ "fields": { "title": "Proběhlo", "hint": "", - "url": "/soustredeni/probehlo/", - "urlaspattern": false, + "url": "seminar_seznam_soustredeni", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -481,8 +481,8 @@ "fields": { "title": "Profil", "hint": "", - "url": "/profil/", - "urlaspattern": false, + "url": "profil", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -507,8 +507,8 @@ "fields": { "title": "Osobní údaje", "hint": "", - "url": "/profil/osobni-udaje", - "urlaspattern": false, + "url": "seminar_resitel_edit", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -533,8 +533,8 @@ "fields": { "title": "Poslat řešení", "hint": "", - "url": "/odeslat-reseni/", - "urlaspattern": false, + "url": "seminar_nahraj_reseni", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -559,8 +559,8 @@ "fields": { "title": "Témata", "hint": "", - "url": "/archiv/temata/", - "urlaspattern": false, + "url": "seminar_temata", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -611,8 +611,8 @@ "fields": { "title": "Aktuální", "hint": "", - "url": "/korektury/", - "urlaspattern": false, + "url": "korektury_list", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -637,8 +637,8 @@ "fields": { "title": "Zastaralé", "hint": "", - "url": "/korektury/zastarale/", - "urlaspattern": false, + "url": "korektury_stare_list", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -689,8 +689,8 @@ "fields": { "title": "Aktuální číslo", "hint": "", - "url": "/zadani/aktualni/", - "urlaspattern": false, + "url": "seminar_aktualni_zadani", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -715,8 +715,8 @@ "fields": { "title": "Témata", "hint": "", - "url": "/zadani/temata/", - "urlaspattern": false, + "url": "seminar_temata", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -741,8 +741,8 @@ "fields": { "title": "Čísla", "hint": "", - "url": "/archiv/rocniky/", - "urlaspattern": false, + "url": "seminar_archiv_rocniky", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, @@ -767,8 +767,8 @@ "fields": { "title": "Úvod", "hint": "", - "url": "/profil/", - "urlaspattern": false, + "url": "profil", + "urlaspattern": true, "tree": 1, "hidden": false, "alias": null, diff --git a/korektury/urls.py b/korektury/urls.py index 2de95918..452ab1e3 100644 --- a/korektury/urls.py +++ b/korektury/urls.py @@ -3,8 +3,8 @@ from seminar.utils import org_required from . import views urlpatterns = [ - path('korektury/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury-list'), - path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury-list'), + path('korektury/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury_list'), + path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'), path('korektury//', org_required(views.KorekturyView.as_view()), name='korektury'), path('korektury/help/', org_required(views.KorekturyHelpView.as_view()), name='korektury-help'), ] diff --git a/seminar/urls.py b/seminar/urls.py index bf0658d6..b5211db9 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -13,8 +13,8 @@ urlpatterns = [ path('co-je-MaM/organizatori/organizovali/', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'), # Archiv - path('archiv/rocniky/', views.ArchivView.as_view()), - path('archiv/temata/', views.ArchivTemataView.as_view()), + path('archiv/rocniky/', views.ArchivView.as_view(), name="seninar_archiv_rocniky"), + path('archiv/temata/', views.ArchivTemataView.as_view(), name="seninar_archiv_temata"), path('rocnik//', views.RocnikView.as_view(), name='seminar_rocnik'), path('cislo/./', views.CisloView.as_view(), name='seminar_cislo'),