'Returns a list of children of DiscussionTopicSerializer type'

def get_children(self, obj):

    if (not obj.children):
        return []
    return [DiscussionTopicSerializer(child).data for child in obj.children]
