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
!269
Resolve "review django admin panel configuration"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "review django admin panel configuration"
346-django-admin-panel
into
master
Overview
0
Commits
3
Pipelines
1
Changes
3
Merged
Carlos Vega
requested to merge
346-django-admin-panel
into
master
4 years ago
Overview
0
Commits
3
Pipelines
1
Changes
3
Expand
Closes
#346 (closed)
Do you think there is something else to be done here?
0
0
Merge request reports
Compare
master
version 1
b7ed00f7
4 years ago
master (base)
and
latest version
latest version
b7ed00f7
3 commits,
4 years ago
version 1
b7ed00f7
11 commits,
4 years ago
3 files
+
171
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
smash/web/models/appointment.py
+
8
−
0
Options
@@ -77,6 +77,14 @@ class Appointment(models.Model):
default
=
False
)
def
__str__
(
self
):
start
=
self
.
datetime_when
.
strftime
(
'
%Y-%m-%d %H:%M
'
)
if
self
.
visit
is
not
None
:
subject
=
self
.
visit
.
subject
.
subject
return
f
'
#
{
self
.
visit
.
visit_number
:
02
}
|
{
start
}
(
{
self
.
length
}
min) |
{
subject
.
first_name
}
{
subject
.
last_name
}
|
{
self
.
status
}
'
else
:
return
f
'
{
start
}
(
{
self
.
length
}
min) |
{
self
.
status
}
'
def
mark_as_finished
(
self
):
self
.
status
=
Appointment
.
APPOINTMENT_STATUS_FINISHED
self
.
save
()
Loading