Filterform does not apply filter to list #19039
Replies: 1 comment
-
I swore I tried this first, maybe I had something wrong and ended up going down a rabbithole... but this was the solution (add site_id to the FilterSet)...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm very new to Netbox and django in general, but I've exhausted everything I could find to help me with this problem. I'm evaluating Netbox for an application and am trying to create a plugin for tracking some information about facilities. I've constructed a model but when I try to filter it using FilterForm tab, the results that are returned or still unfiltered. I don't know what mechanism is used to do the filtering so I'm struggling in figuring out my problem.
Model:
FilterForm:
View:
FilterSet (not sure this is relevant to the type of filter because everything is the same if I include it the view above or not..)
I get the FilterForm tab and select one the site I want to filter on:
After pressing save, it goes back put the form is not filtered even though I can see in the url the ?site=1 is being passed.
I don't really know where to look as I can't find a lot of information on the FilterForm (or people with such an issue either). I'm sure its something simple, but I've spent hours to no avail. Any help would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions