# HG changeset patch # User Nishanth Amuluru # Date 1294552750 -19800 # Node ID ec7f2f4256f52e7606ed532298e919eeec22e1be # Parent f88135529c742ef0697ce1a268ca1723ad4d3004 now the creator can select users diff -r f88135529c74 -r ec7f2f4256f5 pytask/taskapp/views.py --- a/pytask/taskapp/views.py Sun Jan 09 11:25:08 2011 +0530 +++ b/pytask/taskapp/views.py Sun Jan 09 11:29:10 2011 +0530 @@ -167,7 +167,8 @@ task_claimable = True if task.status in ["OP", "WR"] else False can_claim = True if task_claimable and ( not has_claimed )\ - and ( not is_reviewer ) else False + and ( not is_reviewer ) and (not is_creator ) \ + else False old_claims = task.claims.all() diff -r f88135529c74 -r ec7f2f4256f5 pytask/templates/task/claim.html --- a/pytask/templates/task/claim.html Sun Jan 09 11:25:08 2011 +0530 +++ b/pytask/templates/task/claim.html Sun Jan 09 11:29:10 2011 +0530 @@ -21,8 +21,9 @@ The task cannot be claimed at this stage.
{% endif %} {% endif %} - {% if task_claimed and is_creator %} - Select a user to assign the work. + {% if old_claims and is_creator %} +
+ Select a user to assign the work {% endif %} {% if can_claim %}