Skip to content

plugins: filter in forms.py #13119

Discussion options

You must be logged in to vote

Here is the solution for me.

    sitegroup = DynamicModelChoiceField(
        queryset=SiteGroup.objects.all(),
        query_params={'name__ic': ['L3', 'L2']}
    )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andershagman
Comment options

Answer selected by andershagman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants