How to create link for django filter
maybe you try use some js solution.

just get all the current attributes from url by  using js ,build  dict.
when clicking other attribute button,you can add or replace the attribute in the dict.
use this dict to form your url.
Scenario:
Products can have multiple attributes defined in the database, I want to be able to filter by those attributes.
Since i have not found a way to use dynamic attributes using django-filter, this is currently achieved by using django filter MethodFilter which parses the attributes passed as query string as:
/products?attribute=size_2&attribute=color_red
url like this is parsed and it works.
The problem is building the url:
I couldn't find a reasonable way to build the url, that would take current search parameters into account and add/replace those parameters.
Django seems to be forcing me to use urlconf but django-filter uses query string parameters.
What i try to achieve is this:
The user is on page /products?attribute=size_10 which display all products with that size.
When he clicks th link "color red" the new url becomes: /products?attribute=size_10&attribute=color_red
Can you point me to the django way of implementing this?