Skip to content
Discussion options

You must be logged in to vote

For completeness, can you show the exact query parameters you're sending?

Looking at the source code, it seems that devicetype_id (with no underscore between device and type) is the correct name of the filter.

class InterfaceTemplateFilterSet(ChangeLoggedModelFilterSet, ModularDeviceTypeComponentFilterSet):
    type = django_filters.MultipleChoiceFilter(
        choices=InterfaceTypeChoices,
        null_value=None
    )
    bridge_id = django_filters.ModelMultipleChoiceFilter(
        field_name='bridge',
        queryset=InterfaceTemplate.objects.all()
    )
    poe_mode = django_filters.MultipleChoiceFilter(
        choices=InterfacePoEModeChoices
    )
    poe_type = django_filters.Mu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nonPointer
Comment options

@candlerb
Comment options

@nonPointer
Comment options

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