fix: now parent can be expanded in external api (#5511)
This commit is contained in:
parent
a3a7053be7
commit
4c8e8d985c
3 changed files with 14 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ class BaseSerializer(serializers.ModelSerializer):
|
|||
# Import all the expandable serializers
|
||||
from . import (
|
||||
IssueSerializer,
|
||||
IssueLiteSerializer,
|
||||
ProjectLiteSerializer,
|
||||
StateLiteSerializer,
|
||||
UserLiteSerializer,
|
||||
|
|
@ -86,6 +87,7 @@ class BaseSerializer(serializers.ModelSerializer):
|
|||
"actor": UserLiteSerializer,
|
||||
"owned_by": UserLiteSerializer,
|
||||
"members": UserLiteSerializer,
|
||||
"parent": IssueLiteSerializer,
|
||||
}
|
||||
# Check if field in expansion then expand the field
|
||||
if expand in expansion:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue