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-10-03 15:02:24 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-10-03 15:02:29 (GMT)
commitb8a72888d87ae036c4d82c0d1c98b70ea7b97386 (patch)
tree2b23320313b0fe1101a715f48fde6870c4085b1e /webapp/polls/views.py
parent6726b1a581f5483ed8512fdd2aa91af9e3a69d9a (diff)
Remove validate method from existence check in UnploadPollResultFormView
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r--webapp/polls/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py
index c3af980..c56d648 100644
--- a/webapp/polls/views.py
+++ b/webapp/polls/views.py
@@ -370,7 +370,7 @@ class UnploadPollResultFormView(TemplateView):
try:
prf = PollResultFile(file_.temporary_file_path())
to_json.append(prf.get_data())
- exists = prf.exists() or not prf.validate()
+ exists = prf.exists()
existing.append(file_.name) if exists else news.append(file_)
except ValueError:
fname = file_.name