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
ff616aab
Commit
ff616aab
authored
2 years ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Fix redirect error of seating plan edit forms
parent
020db15f
No related branches found
No related tags found
No related merge requests found
Pipeline
#114885
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
+4
-4
4 additions, 4 deletions
aleksis/apps/stoelindeling/views.py
with
9 additions
and
4 deletions
CHANGELOG.rst
+
5
−
0
View file @
ff616aab
...
@@ -22,6 +22,11 @@ Added
...
@@ -22,6 +22,11 @@ Added
* Support for usage with new AlekSIS SPA.
* Support for usage with new AlekSIS SPA.
Fixed
~~~~~
* In some cases, seating plan edit forms caused an error when trying to redirect after they were filled successfully.
`1.0.2`_ - 2022-11-04
`1.0.2`_ - 2022-11-04
---------------------
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/stoelindeling/views.py
+
4
−
4
View file @
ff616aab
...
@@ -48,7 +48,7 @@ class SeatingPlanDetailView(PermissionRequiredMixin, DetailView):
...
@@ -48,7 +48,7 @@ class SeatingPlanDetailView(PermissionRequiredMixin, DetailView):
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
class
SeatingPlanCreateView
(
PermissionRequiredMixin
,
SuccessNextMixin
,
AdvancedCreateView
):
class
SeatingPlanCreateView
(
PermissionRequiredMixin
,
AdvancedCreateView
):
"""
Create view for seating plans.
"""
"""
Create view for seating plans.
"""
model
=
SeatingPlan
model
=
SeatingPlan
...
@@ -138,7 +138,7 @@ class SeatingPlanEditView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
...
@@ -138,7 +138,7 @@ class SeatingPlanEditView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
class
SeatingPlanCopyView
(
PermissionRequiredMixin
,
SuccessNextMixin
,
AdvancedEditView
):
class
SeatingPlanCopyView
(
PermissionRequiredMixin
,
AdvancedEditView
):
"""
Copy view for seating plans.
"""
"""
Copy view for seating plans.
"""
model
=
SeatingPlan
model
=
SeatingPlan
...
@@ -147,7 +147,7 @@ class SeatingPlanCopyView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
...
@@ -147,7 +147,7 @@ class SeatingPlanCopyView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
template_name
=
"
stoelindeling/seating_plan/copy.html
"
template_name
=
"
stoelindeling/seating_plan/copy.html
"
def
get_success_url
(
self
):
def
get_success_url
(
self
):
return
reverse
(
"
edit_seating_plan
"
,
args
=
[
self
.
new_object
.
pk
])
# FiXME NEXT URL
return
reverse
(
"
edit_seating_plan
"
,
args
=
[
self
.
new_object
.
pk
])
def
get_form_kwargs
(
self
):
def
get_form_kwargs
(
self
):
kwargs
=
super
().
get_form_kwargs
()
kwargs
=
super
().
get_form_kwargs
()
...
@@ -176,7 +176,7 @@ class SeatingPlanCopyView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
...
@@ -176,7 +176,7 @@ class SeatingPlanCopyView(PermissionRequiredMixin, SuccessNextMixin, AdvancedEdi
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
@method_decorator
(
never_cache
,
name
=
"
dispatch
"
)
class
SeatingPlanDeleteView
(
class
SeatingPlanDeleteView
(
PermissionRequiredMixin
,
RevisionMixin
,
SuccessNextMixin
,
AdvancedDeleteView
PermissionRequiredMixin
,
RevisionMixin
,
AdvancedDeleteView
):
):
"""
Delete view for seating plans.
"""
"""
Delete view for seating plans.
"""
...
...
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