Open Belgand opened 12 years ago
We should probably filter out the data in the view and then just send a context to the template that comprises the todo items we want to display.
Also, why are we using a separate template? Couldn't we just render the context we create in this view with the existing todoitem_list.html template? This would mean less repetition and better implementation of an MTV architecture (i.e. the View pulls in data from the Model and processes it, then sends the processed data to the Template which defines how that data is displayed).
I changed the template to use todoitem_list.html in commit f8f601a0 and somehow forgot to reference this issue.
Fore more documentation on filtering and searching you'll probably want to look at: Field Lookups.
Implement a menu item that shows a user all available (i.e. unclaimed and uncompleted) todo items that match their interests.