N
N
NyxDeveloper2021-01-24 18:22:51
Django
NyxDeveloper, 2021-01-24 18:22:51

How to do filtering in django with remembering previous filters?

I'm doing a multiple table search, I need the previous filtering values ​​to be applied too. I decided to save the previous filter in a string and take it from there during the next filtering. The fact is that this approach requires the use of frequent conversions from string to json and vice versa, which is not very encouraging, and such a search can be broken quite easily. Advise some solutions to this problem, maybe a ready-made library, or maybe some documentation on this issue. Any help is helpful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aleks-th, 2021-01-24
@aleks-th

Save parameters in cookies or localstorage for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question