diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-26 14:36:46 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-26 14:36:46 (GMT) |
commit | dcda2d37e96c38f435aa30839cbf8806a4c26900 (patch) | |
tree | 4d833dc14839d2d180d03efef3fd1be7b7e7ebef /webapp/polls/models.py | |
parent | 8767b61a5686a05292942c764f1eb16a499878ab (diff) | |
parent | c312ce1316d390c4f4c638e028a319379ce5e708 (diff) |
Read only structure new condition: poll closed or poll with result
Diffstat (limited to 'webapp/polls/models.py')
-rw-r--r-- | webapp/polls/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/polls/models.py b/webapp/polls/models.py index be917cc..9402c94 100644 --- a/webapp/polls/models.py +++ b/webapp/polls/models.py @@ -1323,7 +1323,7 @@ class Structure(AbstractObject, ComponentStructure): def is_read_only(self): """Tells if the structure can be modified.""" poll = self.poll - return poll.has_result() + return not poll.is_open() or poll.has_result() class NodePollResult(object): |