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
Iterations
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Merge requests
!125
Make sure new additional slots have the correct default length
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Make sure new additional slots have the correct default length
fix-slot-defaultlength
into
main
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Make sure new additional slots have the correct default length
Benjamin Hättasch
requested to merge
fix-slot-defaultlength
into
main
Aug 15, 2022
Overview
0
Commits
1
Pipelines
2
Changes
2
0
0
Merge request reports
Compare
main
version 1
e469d407
Aug 15, 2022
main (base)
and
latest version
latest version
4cf5c190
1 commit,
Aug 15, 2022
version 1
e469d407
1 commit,
Aug 15, 2022
2 files
+
1
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
AKSubmission/forms.py
+
0
−
9
View file @ 4cf5c190
Edit in single-file editor
Open in Web IDE
Show full file
@@ -176,15 +176,6 @@ class AKDurationForm(forms.ModelForm):
'
event
'
:
forms
.
HiddenInput
}
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
self
.
initial
=
{
**
self
.
initial
,
**
kwargs
[
'
initial
'
]}
if
self
.
initial
.
get
(
'
duration
'
)
==
0
:
event_id
=
self
.
initial
.
get
(
'
event
'
)
if
event_id
is
not
None
:
event
=
Event
.
objects
.
get
(
pk
=
event_id
)
self
.
initial
[
'
duration
'
]
=
event
.
default_slot
class
AKOrgaMessageForm
(
forms
.
ModelForm
):
class
Meta
:
Loading