# HG changeset patch # User nishanth # Date 1267305321 -19800 # Node ID 0ede6b2c5cd11600879f088559fb4c429bd04b8e # Parent 3a49a7e23442ea91e6ccd6d458675fdea058253c now view credits page shows all the credits.. including the pending and rejected ones. diff -r 3a49a7e23442 -r 0ede6b2c5cd1 taskapp/views/task.py --- a/taskapp/views/task.py Sun Feb 28 02:07:51 2010 +0530 +++ b/taskapp/views/task.py Sun Feb 28 02:45:21 2010 +0530 @@ -435,12 +435,14 @@ choices.extend([(_.id, _.username) for _ in task.assigned_users.all() ]) prev_credits = task.credit_set.all() ## here we can ditchax credits model and use the request model + credit_requests = task.request_task.filter(role="PY",is_valid=True).order_by('creation_date').reverse() form = AssignCreditForm(choices) context = { 'user':user, 'task':task, 'prev_credits':prev_credits, + 'credit_requests':credit_requests, 'form':form, } diff -r 3a49a7e23442 -r 0ede6b2c5cd1 templates/task/assigncredits.html --- a/templates/task/assigncredits.html Sun Feb 28 02:07:51 2010 +0530 +++ b/templates/task/assigncredits.html Sun Feb 28 02:45:21 2010 +0530 @@ -3,19 +3,36 @@ {{task.title}} {% endblock %} {% block content %} - Click here to return to the task. - {% if prev_credits %} -