Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
SMASCH
scheduling-system
Merge requests
!229
Feature/provenance
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/provenance
feature/provenance
into
master
Overview
10
Commits
22
Pipelines
8
Changes
1
All threads resolved!
Hide all comments
Merged
Carlos Vega
requested to merge
feature/provenance
into
master
5 years ago
Overview
10
Commits
22
Pipelines
8
Changes
1
All threads resolved!
Hide all comments
Expand
Test missing but code can be checked
Edited
4 years ago
by
Piotr Gawron
0
0
Merge request reports
Viewing commit
217009b9
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
217009b9
use different variable name
· 217009b9
Carlos Vega
authored
5 years ago
smash/web/forms/appointment_form.py
+
3
−
3
Options
@@ -38,9 +38,9 @@ class AppointmentForm(ModelForm):
new_value
=
'
,
'
.
join
([
str
(
element
.
id
)
for
element
in
new_value
])
#overwrite variable
#old value
if
self
.
instance
.
id
:
#update instance
previous
_value
=
getattr
(
self
.
instance
,
field
).
all
()
old_human_values
=
'
;
'
.
join
([
str
(
element
)
for
element
in
previous
_value
])
previous_value
=
'
,
'
.
join
([
str
(
element
.
id
)
for
element
in
previous
_value
])
#overwrite variable
list_of
_value
s
=
getattr
(
self
.
instance
,
field
).
all
()
old_human_values
=
'
;
'
.
join
([
str
(
element
)
for
element
in
list_of
_value
s
])
previous_value
=
'
,
'
.
join
([
str
(
element
.
id
)
for
element
in
list_of
_value
s
])
else
:
#new instance
old_human_values
=
''
previous_value
=
''
Loading