Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
3caa08c9
Commit
3caa08c9
authored
Jan 17, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #675 in RMS/api-main-service from red-develop to product-dev
* commit '
97361ea0
': fixing
parents
bb1f5397
97361ea0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
app/applicationlayer/cms/cms_settings/views.py
app/applicationlayer/cms/cms_settings/views.py
+2
-4
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+0
-1
No files found.
app/applicationlayer/cms/cms_settings/views.py
View file @
3caa08c9
...
...
@@ -86,9 +86,8 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
active_user
=
self
.
request
.
user
.
name
admin
=
request
.
user
.
email
linking
=
'as'
args
=
[
behalf_name
,
'Removed'
,
active_user
,
behalf_email
,
admin
,
linking
]
args
=
[
behalf_name
,
'Removed'
,
active_user
,
behalf_email
,
admin
,
'as'
]
main_threading
(
args
,
sender
.
on_behalf
)
return
Response
(
status
=
status
.
HTTP_204_NO_CONTENT
)
...
...
@@ -117,14 +116,13 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
active_user
=
self
.
request
.
user
.
name
action
=
'Added'
admin
=
request
.
user
.
email
linking
=
'on'
for
data
in
data_cms_settings
:
recipient
=
User
.
objects
.
get
(
code
=
str
(
data
[
'behalf_user'
])
)
args
=
[
recipient
.
name
,
action
,
active_user
,
recipient
.
email
,
admin
,
linking
]
args
=
[
recipient
.
name
,
action
,
active_user
,
recipient
.
email
,
admin
,
'on'
]
main_threading
(
args
,
sender
.
on_behalf
)
if
serializer
.
is_valid
(
raise_exception
=
True
):
...
...
app/helper/email_service/sender.py
View file @
3caa08c9
...
...
@@ -607,7 +607,6 @@ def on_behalf(args):
recipient
=
args
[
3
]
admin
=
args
[
4
]
linking
=
args
[
5
]
print
(
args
)
F
=
open
(
os
.
path
.
join
(
settings
.
EMAIL_TEMPLATES_ROOT
,
'RMS-ONBEHALF.html'
),
'r'
)
...
...
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