Skip to content

Ambiguous ID OperationalError #19

@Will-Hoey

Description

@Will-Hoey

When indexing 2 models which have a relation (see RSPH LearningCentre/Qualification), they will error if they aren't registered manually in the Config.ready(). You can get around this by registering the default Watson way

from app.models import Model

register_for_search(
    Model.objects.all(),
    fields=Modelget_search_fields(),
)

I'm not sure why this part isn't picking it up https://github.com/giantmade/giant-search/blob/develop/giant_search/signals.py#L30 but it does the same thing. Needs looking into

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