Commit 54ce7ce8 authored by John Red Medrano's avatar John Red Medrano

added code on current user

parent 12a93c89
......@@ -62,7 +62,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
def get_department(self, user):
data = {
"id": user.department.id,
"code": user.department.code
"code": user.department.code,
"name": user.department.name
}
return data
......@@ -70,7 +70,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
def get_company(self, user):
data = {
"id": user.department.company.id,
"code": user.department.company.code
"code": user.department.company.code,
"name": user.department.company.name
}
return data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment