some unrequired files on userrelations
This commit is contained in:
@@ -111,11 +111,17 @@ class UserRelationSerializer(serializers.ModelSerializer):
|
|||||||
'permissions',
|
'permissions',
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'organization': {
|
'organization': {
|
||||||
'required': False
|
'required': False
|
||||||
|
},
|
||||||
|
'permissions': {
|
||||||
|
'required': False
|
||||||
|
},
|
||||||
|
'role': {
|
||||||
|
'required': False
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
def to_representation(self, instance):
|
def to_representation(self, instance):
|
||||||
""" custom output for serializer """
|
""" custom output for serializer """
|
||||||
|
|||||||
Reference in New Issue
Block a user