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
de3d437d
Commit
de3d437d
authored
Oct 01, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Plain Diff
fixed conflict
parents
d5b4e069
237b9605
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
app/applicationlayer/management/account/views.py
app/applicationlayer/management/account/views.py
+8
-2
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+1
-1
env.template.ini
env.template.ini
+19
-2
No files found.
app/applicationlayer/management/account/views.py
View file @
de3d437d
...
...
@@ -36,12 +36,18 @@ class UserViewSet(viewsets.ModelViewSet):
lookup_field
=
'code'
filter_backends
=
(
DjangoFilterBackend
,
SearchFilter
,
OrderingFilter
)
filterset_class
=
AccountFilterset
ordering_fields
=
'__all__'
ordering_fields
=
(
'department__company__name'
,
'department__name'
,
'name'
,
'code'
,
'email'
,
'contact_no'
)
search_fields
=
(
'name'
,
'code'
,
'department'
,
'department__company__name'
,
'department__name'
,
'email'
,
'contact_no'
'email'
,
'contact_no'
,
'companies'
)
@
rms
.
user_create
...
...
app/helper/email_service/sender.py
View file @
de3d437d
...
...
@@ -20,7 +20,7 @@ def account_created(args):
FC
=
FC
.
replace
(
'{name}'
,
name
)
FC
=
FC
.
replace
(
'{username}'
,
username
)
FC
=
FC
.
replace
(
'{password}'
,
password
)
FC
=
FC
.
replace
(
'{url}'
,
settings
.
FRONT_END_URL
+
'/cms/profile'
)
FC
=
FC
.
replace
(
'{url}'
,
settings
.
FRONT_END_URL
+
'/cms/profile'
)
# changed
try
:
send_mail
(
subject
=
'OB RMS: Welcome!'
,
...
...
env.template.ini
View file @
de3d437d
...
...
@@ -6,7 +6,7 @@ DATABASE_PASSWORD =
DATABASE_HOST =
DATABASE_PORT
=
SESSION_TIMEOUT =
FRONT_END_URL
=
http://staging.rms.oneberrysystem.com
FRONT_END_URL
=
AUTH_ACCESSS_TOKEN_TIMEOUT =
USER_DEFAULT_PASSWORD
=
CATCH_EMAIL = gladys@tirsolutions.com
...
...
@@ -43,6 +43,23 @@ CATCH_EMAIL = gladys@tirsolutions.com
CR_LINK
=
http://devweb.rmsv2.oneberrysystem.com/cms/change-request/form/view
REALTIMESERVER_IP
=
127.0.0.1:8000
[STAGING]
DATABASE_ENGINE
=
django.db.backends.mysql
DATABASE_NAME
=
rms_db
DATABASE_USER
=
DATABASE_PASSWORD =
DATABASE_HOST
=
DATABASE_PORT =
SESSION_TIMEOUT
=
FRONT_END_URL
=
http://staging.rms.oneberrysystem.com
AUTH_ACCESSS_TOKEN_TIMEOUT
=
3600
USER_DEFAULT_PASSWORD
=
password
CATCH_EMAIL
=
CR_LINK = http://staging.rms.oneberrysystem.com/cms/change-request/form/view
REALTIMESERVER_IP
=
127.0.0.1:8000
[LOCAL]
DATABASE_ENGINE
=
django.db.backends.mysql
DATABASE_NAME
=
rms_db
...
...
@@ -59,7 +76,7 @@ CR_LINK = http://localhost:8000/cms/change-request/form/view
REALTIMESERVER_IP
=
127.0.0.1:8000
[SETTINGS]
CONFIG
=
config.settings.
local
CONFIG
=
config.settings.
staging
[NOTIFICATION_EMAIL]
APPROVER_MESSAGE
=
has sent you an APPROVAL REQUEST for change request;RMS-ACTIONREQUIRED
...
...
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