Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Stoelindeling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Stoelindeling
Commits
5551af7a
Commit
5551af7a
authored
2 years ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Specify page to redirect to after submitting some seating plan forms properly
parent
020db15f
No related branches found
No related tags found
1 merge request
!25
Resolve "Fix redirect on form success"
Pipeline
#115287
failed
2 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/stoelindeling/views.py
+2
-2
2 additions, 2 deletions
aleksis/apps/stoelindeling/views.py
with
7 additions
and
2 deletions
CHANGELOG.rst
+
5
−
0
View file @
5551af7a
...
...
@@ -22,6 +22,11 @@ Added
* Support for usage with new AlekSIS SPA.
Fixed
~~~~~
* When no page to redirect to was passed to some of the seating plan views, an error occured.
`1.0.2`_ - 2022-11-04
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/stoelindeling/views.py
+
2
−
2
View file @
5551af7a
...
...
@@ -55,7 +55,7 @@ class SeatingPlanCreateView(PermissionRequiredMixin, SuccessNextMixin, AdvancedC
form_class
=
SeatingPlanCreateForm
permission_required
=
"
stoelindeling.create_seatingplan_rule
"
template_name
=
"
stoelindeling/seating_plan/create.html
"
success_url
=
reverse_lazy
(
"
seating_plans
"
)
next_page
=
"
seating_plans
"
success_message
=
_
(
"
The seating plan has been created.
"
)
def
get_form_kwargs
(
self
):
...
...
@@ -183,5 +183,5 @@ class SeatingPlanDeleteView(
model
=
SeatingPlan
permission_required
=
"
stoelindeling.delete_seatingplan_rule
"
template_name
=
"
core/pages/delete.html
"
success_url
=
reverse_lazy
(
"
seating_plans
"
)
next_page
=
"
seating_plans
"
success_message
=
_
(
"
The seating plan has been deleted.
"
)
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