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
Commits
b069e347
Commit
b069e347
authored
4 years ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
use display_visit_number filter
parent
a1027eb0
No related branches found
No related tags found
1 merge request
!250
Virus visit column changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/api_views/appointment.py
+2
-1
2 additions, 1 deletion
smash/web/api_views/appointment.py
with
2 additions
and
1 deletion
smash/web/api_views/appointment.py
+
2
−
1
View file @
b069e347
...
...
@@ -5,6 +5,7 @@ from django.http import JsonResponse
from
django.urls
import
reverse
from
django.utils
import
timezone
from
web.templatetags.filters
import
display_visit_number
from
web.api_views.serialization_utils
import
serialize_datetime
,
location_to_str
,
flying_team_to_str
,
add_column
,
\
bool_to_yes_no
,
get_filters_for_data_table_request
from
web.models
import
Appointment
,
Study
,
SubjectColumns
,
AppointmentColumns
,
AppointmentList
,
StudyColumns
...
...
@@ -175,7 +176,7 @@ def serialize_appointment(appointment):
nd_number
=
screening_number
=
phone_numbers
=
appointment_type_names
=
None
status
=
appointment
.
status
if
appointment
.
visit
is
not
None
:
title
=
"
Visit
"
+
st
r
(
appointment
.
visit
.
visit_number
)
title
=
"
Visit
{}
"
.
format
(
display_visit_numbe
r
(
appointment
.
visit
.
visit_number
)
)
study_subject
=
appointment
.
visit
.
subject
subject_string
=
study_subject
.
subject
.
last_name
+
"
"
+
study_subject
.
subject
.
first_name
first_name
=
study_subject
.
subject
.
first_name
...
...
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