Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Weitz
AKPlanning
Commits
3ddf2458
Commit
3ddf2458
authored
5 years ago
by
Nadja Geisler
Browse files
Options
Downloads
Patches
Plain Diff
redirect top level page to current event overview
parent
ddc0ffe3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AKDashboard/urls.py
+9
-0
9 additions, 0 deletions
AKDashboard/urls.py
AKDashboard/views.py
+10
-1
10 additions, 1 deletion
AKDashboard/views.py
AKPlanning/urls.py
+1
-0
1 addition, 0 deletions
AKPlanning/urls.py
with
20 additions
and
1 deletion
AKDashboard/urls.py
0 → 100644
+
9
−
0
View file @
3ddf2458
from
django.urls
import
path
from
AKDashboard
import
views
app_name
=
"
dashboard
"
urlpatterns
=
[
path
(
''
,
views
.
TopLevelRedirectView
.
as_view
(),
name
=
'
top_level_redirect
'
),
]
This diff is collapsed.
Click to expand it.
AKDashboard/views.py
+
10
−
1
View file @
3ddf2458
# Create your views here.
from
django.urls
import
reverse_lazy
from
django.views.generic
import
RedirectView
from
AKModel.models
import
Event
class
TopLevelRedirectView
(
RedirectView
):
is_permanent
=
False
url
=
reverse_lazy
(
'
submit:submission_overview
'
,
kwargs
=
{
'
event_slug
'
:
Event
.
objects
.
filter
(
active
=
True
).
last
().
slug
})
This diff is collapsed.
Click to expand it.
AKPlanning/urls.py
+
1
−
0
View file @
3ddf2458
...
...
@@ -19,5 +19,6 @@ from django.urls import path, include
urlpatterns
=
[
path
(
'
admin/
'
,
admin
.
site
.
urls
),
path
(
''
,
include
(
'
AKSubmission.urls
'
,
namespace
=
'
submit
'
)),
path
(
''
,
include
(
'
AKDashboard.urls
'
,
namespace
=
'
dashboard
'
)),
path
(
'
i18n/
'
,
include
(
'
django.conf.urls.i18n
'
)),
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment