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
74c6863e
Commit
74c6863e
authored
Sep 13, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'RMSv2' of
http://42.61.118.105:7990/scm/rms/api-main-service
into gladys-dev2
parents
c9b4e426
ccf35a71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
6 deletions
+30
-6
app/applicationlayer/management/account/serializer.py
app/applicationlayer/management/account/serializer.py
+3
-3
config/settings/dev.py
config/settings/dev.py
+1
-1
config/settings/production.py
config/settings/production.py
+11
-1
config/settings/uat.py
config/settings/uat.py
+15
-1
No files found.
app/applicationlayer/management/account/serializer.py
View file @
74c6863e
...
@@ -4,6 +4,7 @@ import ast
...
@@ -4,6 +4,7 @@ import ast
from
django.contrib.auth.hashers
import
make_password
,
check_password
from
django.contrib.auth.hashers
import
make_password
,
check_password
import
re
import
re
from
django.contrib.auth
import
authenticate
from
django.contrib.auth
import
authenticate
from
django.forms.models
import
model_to_dict
class
UserSerializer
(
serializers
.
ModelSerializer
):
class
UserSerializer
(
serializers
.
ModelSerializer
):
...
@@ -19,8 +20,8 @@ class UserSerializer(serializers.ModelSerializer):
...
@@ -19,8 +20,8 @@ class UserSerializer(serializers.ModelSerializer):
# ).values().first()
# ).values().first()
ret
=
super
()
.
to_representation
(
instance
)
ret
=
super
()
.
to_representation
(
instance
)
ret
[
'department
_name'
]
=
instance
.
department
.
name
ret
[
'department
'
]
=
model_to_dict
(
instance
.
department
)
ret
[
'company
_name'
]
=
instance
.
department
.
company
.
name
ret
[
'company
'
]
=
model_to_dict
(
instance
.
department
.
company
)
return
ret
return
ret
class
Meta
:
class
Meta
:
...
@@ -29,7 +30,6 @@ class UserSerializer(serializers.ModelSerializer):
...
@@ -29,7 +30,6 @@ class UserSerializer(serializers.ModelSerializer):
'id'
,
'id'
,
'code'
,
'name'
,
'code'
,
'name'
,
'username'
,
'contact_no'
,
'username'
,
'contact_no'
,
'department'
,
'email'
,
'default_app'
,
'email'
,
'default_app'
,
'user_type'
,
'is_active'
,
'user_type'
,
'is_active'
,
'doa'
'doa'
...
...
config/settings/dev.py
View file @
74c6863e
...
@@ -40,4 +40,4 @@ VENDOR_ACCEPTANCE_MESSAGE = config['NOTIFICATION_EMAIL']['VENDOR_ACCEPTANCE_MESS
...
@@ -40,4 +40,4 @@ VENDOR_ACCEPTANCE_MESSAGE = config['NOTIFICATION_EMAIL']['VENDOR_ACCEPTANCE_MESS
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
#ADMIN PROFILE
#ADMIN PROFILE
CATCH_EMAIL
=
config
[
'
ADMIN
'
][
'CATCH_EMAIL'
]
CATCH_EMAIL
=
config
[
'
DEV
'
][
'CATCH_EMAIL'
]
config/settings/production.py
View file @
74c6863e
...
@@ -29,5 +29,15 @@ AUTH_ACCESSS_TOKEN_TIMEOUT = config['PRODUCTION']['AUTH_ACCESSS_TOKEN_TIMEOUT']
...
@@ -29,5 +29,15 @@ AUTH_ACCESSS_TOKEN_TIMEOUT = config['PRODUCTION']['AUTH_ACCESSS_TOKEN_TIMEOUT']
USER_DEFAULT_PASSWORD
=
config
[
'PRODUCTION'
][
'USER_DEFAULT_PASSWORD'
]
USER_DEFAULT_PASSWORD
=
config
[
'PRODUCTION'
][
'USER_DEFAULT_PASSWORD'
]
REALTIMESERVER_IP
=
config
[
'NOTIFICATION'
][
'REALTIMESERVER_IP'
]
REALTIMESERVER_IP
=
config
[
'NOTIFICATION'
][
'REALTIMESERVER_IP'
]
# Notification Messages
APPROVER_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'APPROVER_MESSAGE'
]
REQUESTOR_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_MESSAGE'
]
REQUESTOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_REJECT_MESSAGE'
]
VENDOR_ACKNOWLEDGE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_ACKNOWLEDGE_MESSAGE'
]
REQUESTOR_ACKNOWLEDGE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_ACKNOWLEDGE_MESSAGE'
]
REQUESTOR_COMPLETION_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_COMPLETION_MESSAGE'
]
VENDOR_ACCEPTANCE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_ACCEPTANCE_MESSAGE'
]
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
#ADMIN PROFILE
#ADMIN PROFILE
CATCH_EMAIL
=
config
[
'PRODUCTION'
][
'CATCH_EMAIL'
]
CATCH_EMAIL
=
config
[
'PRODUCTION'
][
'CATCH_EMAIL'
]
\ No newline at end of file
config/settings/uat.py
View file @
74c6863e
...
@@ -27,4 +27,18 @@ SESSION_TIMEOUT = config['UAT']['SESSION_TIMEOUT']
...
@@ -27,4 +27,18 @@ SESSION_TIMEOUT = config['UAT']['SESSION_TIMEOUT']
FRONT_END_URL
=
config
[
'UAT'
][
'FRONT_END_URL'
]
FRONT_END_URL
=
config
[
'UAT'
][
'FRONT_END_URL'
]
AUTH_ACCESSS_TOKEN_TIMEOUT
=
config
[
'UAT'
][
'AUTH_ACCESSS_TOKEN_TIMEOUT'
]
AUTH_ACCESSS_TOKEN_TIMEOUT
=
config
[
'UAT'
][
'AUTH_ACCESSS_TOKEN_TIMEOUT'
]
USER_DEFAULT_PASSWORD
=
config
[
'UAT'
][
'USER_DEFAULT_PASSWORD'
]
USER_DEFAULT_PASSWORD
=
config
[
'UAT'
][
'USER_DEFAULT_PASSWORD'
]
REALTIMESERVER_IP
=
config
[
'NOTIFICATION'
][
'REALTIMESERVER_IP'
]
REALTIMESERVER_IP
=
config
[
'NOTIFICATION'
][
'REALTIMESERVER_IP'
]
\ No newline at end of file
# Notification Messages
APPROVER_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'APPROVER_MESSAGE'
]
REQUESTOR_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_MESSAGE'
]
REQUESTOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_REJECT_MESSAGE'
]
VENDOR_ACKNOWLEDGE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_ACKNOWLEDGE_MESSAGE'
]
REQUESTOR_ACKNOWLEDGE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_ACKNOWLEDGE_MESSAGE'
]
REQUESTOR_COMPLETION_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'REQUESTOR_COMPLETION_MESSAGE'
]
VENDOR_ACCEPTANCE_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_ACCEPTANCE_MESSAGE'
]
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
#ADMIN PROFILE
CATCH_EMAIL
=
config
[
'UAT'
][
'CATCH_EMAIL'
]
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