Commit 81ee83f6 authored by John Red Medrano's avatar John Red Medrano

add component at module key on current user

parent b7a13b7c
......@@ -92,7 +92,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
remove = ['Modules', 'Companies', 'Department']
if user.user_type == 'SU':
mod = data.modules.all().values('name')
mod = data.modules.all().values('name', 'components')
else:
mod = data.modules.exclude(name__in=remove).values(
"id", 'name', 'parent'
......
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