How can I return a queryset for a fk or m2m field in wagtail admin create form?
问题 My question holds for any wagtail panel that returns select options from a foreignkey or M2M relationship, like a PageChooserPanel or SnippetChooserPanel. How can I filter the list of options server-side, for the user to only see the information he has access to? I have a Plan model. When creating a new plan, I would like request.user to only see the list of companies he is affiliated to. from modelcluster.models import ClusterableModel from wagtailautocomplete.edit_handlers import