Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open
Commits
b15de605
Commit
b15de605
authored
Mar 06, 2018
by
Daniel W Bond
Browse files
added the word 'the' to confirmation message for bulk main schedule modification
parent
e7fb748a
Pipeline
#2167
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
whats-open/api/admin.py
View file @
b15de605
...
...
@@ -40,7 +40,7 @@ class FacilityAdmin(admin.ModelAdmin):
for
facility
in
queryset
:
facility
.
main_schedule
=
new_schedule
facility
.
save
()
self
.
message_user
(
request
,
"Set %s as main schedule for %d facilities."
%
(
name
,
num
))
self
.
message_user
(
request
,
"Set %s as
the
main schedule for %d facilities."
%
(
name
,
num
))
except
ObjectDoesNotExist
:
self
.
message_user
(
request
,
"Unable to set schedule for %d facilities."
%
num
)
return
HttpResponseRedirect
(
request
.
get_full_path
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment