Nisha Patel
Problem
I've been trying to make a to-do list app,
I'm trying to make each user their own to-do list, with only tasks that they didn't complete,
properly getcontextdata doesn't accept the filter function, cause there are no tasks displayed on the template
Solution
Just filter with >.get_queryset() [Django-doc]:
you might also want to filter on complete=False in get_queryset.
Answered by: >Willem Van Onsem
Credit: >StackOverflow
Blog Links:
>Sorting the restframework in Django
>Ways to access instances of models in view in order to save both forms at once in Django
>What makes index.html have such kind of name in Django?
>Fix Module Not Found during Deployment- Django
>Creating a Django with existing directories, files, etc.?
>How to Read a CSV file with PHP using cURL?