Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/models.py
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-08-29 20:08:13 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-08-29 20:08:13 (GMT)
commit0e3a316b3a62204373917168d08a3410c2e30c71 (patch)
treeaf59554ae30d53a9361fbb07bdc261e7372906ee /webapp/polls/models.py
parent741dc41dd1691819fc97f94e937864396e8ba393 (diff)
PollResultFile responds to .poll_result filename
Diffstat (limited to 'webapp/polls/models.py')
-rw-r--r--webapp/polls/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/polls/models.py b/webapp/polls/models.py
index c769dbf..776a5cf 100644
--- a/webapp/polls/models.py
+++ b/webapp/polls/models.py
@@ -1525,3 +1525,6 @@ class PollResultFile(object):
def get_polled_count(self):
polled_count = len(self.data['result'].keys())
return polled_count
+
+ def get_file_name(self):
+ return os.path.basename(self.file.name)