I'm new to django, I've run into this problem. Previously, I used only functions in views, but now I am faced with class representations. I need to allow the search by date (from and to) in the expenselistview class. I would implement this as a separate function, but can you explain how this function will be different inside the class?

The code in the question should be in reproducible (text) form.

strawdog2022-02-06 06:03:15