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-09-26 14:36:46 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-09-26 14:36:46 (GMT)
commitdcda2d37e96c38f435aa30839cbf8806a4c26900 (patch)
tree4d833dc14839d2d180d03efef3fd1be7b7e7ebef /webapp/polls/views.py
parent8767b61a5686a05292942c764f1eb16a499878ab (diff)
parentc312ce1316d390c4f4c638e028a319379ce5e708 (diff)
Read only structure new condition: poll closed or poll with result
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r--webapp/polls/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py
index cca83da..c19eac1 100644
--- a/webapp/polls/views.py
+++ b/webapp/polls/views.py
@@ -168,7 +168,8 @@ class PollListView(ListView):
),
},
'action_structure_builder': {
- 'disabled': "disabled" if not poll.is_open() else "",
+ 'disabled': ("disabled" if
+ poll.structure.is_read_only() else ""),
'url': reverse(
'sociologist:structure.builder',
kwargs={'poll_id': str(poll.id)}