Skip to content

EditColum filter doesn't work #686

@dploeger

Description

@dploeger

I'm using __filter__include=True on a foreign key fields in an edit table. The filter is displayed and shows the values, but when I select one and click on Filter I'm getting a InvalidEndpointPathException where it tries to reach a (...)/query/query path for that field.

Image

my relevant code:

project_logs = EditTable(
        title="Project logs",
        auto__model=ProjectLog,
        page_size=10,
        rows=lambda pk, **_: ProjectLog.objects.filter(
            project__customer=Customer.objects.get(pk=pk)
        ),
        columns__timestamp__field__initial=now(),
        columns__notice__field__include=True,
        columns__project__filter__include=True,
    )

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