|
I am disabling users from accepting answers, so naturally I want the unanswered questions tab to return all questions with 0 answers only. What's the best way (and how) to do this? Path 1: Have all answers saved with accepted_answer == True Path 2: Change how unanswered retrieves values from the database I've been looking through the code for a while now but can't find out where to modify these things (I tried modifying the question and answer models themselves). Whoever does answer this, if you could tell me what files need modification it would be a great help. |
|
Figured it out! Around line 95 of readers.py: change
to
and to modify the tab name, i changed:
and to have the questions sorted by views i changed:
|
|
Probably need to modify the view, not the model. Why not just remove the tab for unanswered from the template? 1
right, so Path 2 would be modifying the view. I'm just looking for someone who might understand how. The lines involved are confusing and widely spread out.
(12 Dec '10, 21:30)
dougvk
|
I've been wondering the exact same thing! Anyone who can help out with this?