Skip to content

AttributeError: 'QuerySet' object has no attribute 'filter_o' #13

@hobson

Description

@hobson

When a django ORM .filter() precedes a pgtrgm .filter_o() it raises an AttributeError because the parent model manager returns a QuerySet object rather than a SimilarQuerySet object. SimilarManager should override filter in order to allow it to work with filters that precede or follow a filter_o(). I'll submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions