Commit fec3c50f authored by John Red Medrano's avatar John Red Medrano

fixed issue on current user

parent 9b8e5800
......@@ -42,17 +42,20 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
def get_cms_settings(self, user):
data = ChangeRequestSettings.objects.filter(
active_user=str(user.code)
behalf_user=str(user.code)
).values(
'behalf_user__name',
'behalf_user__code',
'active_user__name',
'active_user__code',
# 'behalf_user__name',
# 'behalf_user__code',
'behalf_approved',
'behalf_accepted',
'behalf_rejected',
'behalf_implemented',
'behalf_completed',
)
print(user.code)
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