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
237bb003
Commit
237bb003
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
constants moved
parent
d61af4ec
No related branches found
No related tags found
1 merge request
!47
Resolve "Email to technician"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
smash/web/models/constants.py
+8
-0
8 additions, 0 deletions
smash/web/models/constants.py
smash/web/views/doctor.py
+2
-9
2 additions, 9 deletions
smash/web/views/doctor.py
with
10 additions
and
9 deletions
smash/web/models/constants.py
+
8
−
0
View file @
237bb003
...
...
@@ -53,3 +53,11 @@ MAIL_TEMPLATE_CONTEXT_CHOICES = (
(
MAIL_TEMPLATE_CONTEXT_VISIT
,
'
Visit
'
),
)
LOCALE_CHOICES
=
[(
value
,
value
)
for
value
in
sorted
(
locale
.
windows_locale
.
values
())]
MONDAY_AS_DAY_OF_WEEK
=
1
TUESDAY_AS_DAY_OF_WEEK
=
2
WEDNESDAY_AS_DAY_OF_WEEK
=
3
THURSDAY_AS_DAY_OF_WEEK
=
4
FRIDAY_AS_DAY_OF_WEEK
=
5
SATURDAY_AS_DAY_OF_WEEK
=
6
SUNDAY_AS_DAY_OF_WEEK
=
7
This diff is collapsed.
Click to expand it.
smash/web/views/doctor.py
+
2
−
9
View file @
237bb003
...
...
@@ -4,15 +4,8 @@ from django.shortcuts import redirect, get_object_or_404
from
.
import
wrap_response
from
..forms
import
WorkerAddForm
,
WorkerEditForm
,
WorkerDetailForm
from
..models
import
Worker
,
Availability
MONDAY_AS_DAY_OF_WEEK
=
1
TUESDAY_AS_DAY_OF_WEEK
=
2
WEDNESDAY_AS_DAY_OF_WEEK
=
3
THURSDAY_AS_DAY_OF_WEEK
=
4
FRIDAY_AS_DAY_OF_WEEK
=
5
SATURDAY_AS_DAY_OF_WEEK
=
6
SUNDAY_AS_DAY_OF_WEEK
=
7
from
..models.constants
import
MONDAY_AS_DAY_OF_WEEK
,
TUESDAY_AS_DAY_OF_WEEK
,
WEDNESDAY_AS_DAY_OF_WEEK
,
\
THURSDAY_AS_DAY_OF_WEEK
,
FRIDAY_AS_DAY_OF_WEEK
,
SATURDAY_AS_DAY_OF_WEEK
,
SUNDAY_AS_DAY_OF_WEEK
def
doctors
(
request
):
doctors_list
=
Worker
.
objects
.
order_by
(
'
-last_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