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
!309
Couldn't fetch the linked file.
Resolve "admin cannot unfinish visit"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "admin cannot unfinish visit"
386-admin-cannot-unfinish-visit
into
devel_1.0.x
Overview
0
Commits
2
Pipelines
3
Changes
4
Merged
Piotr Gawron
requested to merge
386-admin-cannot-unfinish-visit
into
devel_1.0.x
4 years ago
Overview
0
Commits
2
Pipelines
3
Changes
4
Expand
Closes
#386 (closed)
Edited
4 years ago
by
Piotr Gawron
0
0
Merge request reports
Viewing commit
cf66fc2c
Prev
Next
Show latest version
4 files
+
40
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
cf66fc2c
Merge remote-tracking branch 'origin/devel_1.0.x' into 386-admin-cannot-unfinish-visit
· cf66fc2c
Piotr Gawron
authored
4 years ago
smash/web/models/mail_template.py
+
3
−
3
Options
@@ -338,13 +338,13 @@ class MailTemplate(models.Model):
"
##S_ADDRESS##
"
:
study_subject
.
subject
.
address
,
"
##S_CITY##
"
:
study_subject
.
subject
.
city
,
"
##S_COUNTRY##
"
:
str
(
study_subject
.
subject
.
country
),
"
##S_DIAGNOSIS_YEAR##
"
:
study_subject
.
get_custom_field_value
(
'
Year of diagnosis
'
),
"
##S_DIAGNOSIS_YEAR##
"
:
str
(
study_subject
.
get_custom_field_value
(
'
Year of diagnosis
'
)
)
,
"
##S_DATE_ADDED##
"
:
date_to_str
(
study_subject
.
date_added
,
DATE_FORMAT_SHORT
),
"
##S_DATE_BORN##
"
:
date_born
,
"
##S_DIAGNOSIS##
"
:
study_subject
.
get_custom_field_value
(
'
Diagnosis
'
),
"
##S_DIAGNOSIS##
"
:
str
(
study_subject
.
get_custom_field_value
(
'
Diagnosis
'
)
)
,
"
##S_EMAIL##
"
:
str
(
study_subject
.
subject
.
email
),
"
##S_SEX##
"
:
study_subject
.
subject
.
get_sex_display
(),
"
##S_MPOWER_ID##
"
:
study_subject
.
get_custom_field_value
(
'
MPower ID
'
),
"
##S_MPOWER_ID##
"
:
str
(
study_subject
.
get_custom_field_value
(
'
MPower ID
'
)
)
,
"
##S_ND_NUMBER##
"
:
study_subject
.
nd_number
,
"
##S_PHONE_NUMBER##
"
:
str
(
study_subject
.
subject
.
phone_number
),
"
##S_PHONE_NUMBER_2##
"
:
str
(
study_subject
.
subject
.
phone_number_2
),
Loading