Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/views.py
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-04-25 05:24:41 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-04-25 05:24:41 (GMT)
commitcfe0e9c3e7237332ab39a125257d74caa24905c0 (patch)
treee5a9d1a270310eae983fa3120732d47807baaa68 /webapp/polls/views.py
parent3b830780849955ac4e24448d972c4f0f78068e5e (diff)
Clone a poll action
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r--webapp/polls/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py
index aa2068e..8f5adf6 100644
--- a/webapp/polls/views.py
+++ b/webapp/polls/views.py
@@ -177,6 +177,12 @@ class PollListView(ListView):
kwargs={'poll_id': str(poll.id)}
),
},
+ 'action_clone': {
+ 'disabled': "",
+ 'url': reverse(
+ 'sociologist:poll_clone', kwargs={'id': str(poll.id)}
+ ),
+ },
'background_color': "#f2dede" if poll.is_open() else "#e8f4db"
} for poll in Poll.all(
sort=[('status', ASCENDING), ('name', ASCENDING)])