Skip to content

Get context of instance selector  #19

@tbrlpld

Description

@tbrlpld

Not an issue, just a question:

I was wondering if there is a way to get the context in which the instance selector panel/modal is opened?

In my use case I would like to filter the instances displayed in the admin based on the current page in which the selector panel is opened. The model admin already comes with the filtering ability. All I would need from the context is the current pages id so that I can use that in the selectors get_instance_selector_url.

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