Issue with filtering the queryset between fromdate and todate to export in csv

I am unable to export the filtered queryset based on fromdate and todate values from the HTML input. When I click on export date button it is pulling all the records from DB instead of filter query results.

We’re going to need significantly more information than what you’ve provided here.

We’ll need to see the code that is doing the processing, the type of input being supplied, the models storing the data, and probably the form being used for input.

When posting code here, please enclose each file between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This ensures that the forum software maintains the proper formatting of your code, which is essential with a language such as Python.