Hi Francisco!
I found this section at the django-filter docs and I think it’s important to consider the advice.
It is recommended that you do NOT implement the below as it adversely affects usability. Django forms don’t provide this behavior for a reason.
- Using initial values as defaults is inconsistent with the behavior of Django forms.
- Default values prevent users from filtering by empty values.
- Default values prevent users from skipping that filter.
That said, I believe you can pass the value argument inside attrs. It’s just an HTML tag.
Also you can use min and max arguments.