diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-08-29 20:08:13 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-08-29 20:08:13 (GMT) |
commit | 0e3a316b3a62204373917168d08a3410c2e30c71 (patch) | |
tree | af59554ae30d53a9361fbb07bdc261e7372906ee /webapp/polls/models.py | |
parent | 741dc41dd1691819fc97f94e937864396e8ba393 (diff) |
PollResultFile responds to .poll_result filename
Diffstat (limited to 'webapp/polls/models.py')
-rw-r--r-- | webapp/polls/models.py | 3 |
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) |