Skip to content

Why is my data after migration. Interjection interface query can not come out #2004

@0716gzs

Description

@0716gzs

Why is my data after migration. Interjection interface query can not come out

class SearchViewSet(HaystackViewSet):
    action_roles_authenticated = {
        'default': [const.DefaultRole.ALL]
    }
    index_models = [User, UserInfo]
    serializer_class = SearchSerializer
    
    
    class SearchSerializer(HaystackSerializer):

    class Meta:
        index_classes = [UserIndex, UserInfoIndex]  # 索引类的名称,可以有多个
        fields = ['text', 'id', 'username', 'name']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions