diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-12 17:06:13 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-12 17:06:13 (GMT) |
commit | 45e952392e740da72018cb413591e0a09c50c65d (patch) | |
tree | e5a2940a3b6d04b567559c8f8688e1769d00c9c9 /webapp/polls/views.py | |
parent | 713607e49509c1068397420e4d31615ae5218321 (diff) |
Better checking for image options
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r-- | webapp/polls/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py index 5dc023d..db297ac 100644 --- a/webapp/polls/views.py +++ b/webapp/polls/views.py @@ -25,6 +25,7 @@ from utils.data_structure import dict_merge from polls.models import (WIDGET_TYPES, Structure, Poll, PollResult, PollResultFile) +from polls.models import is_image_file from polls.forms import PollForm from pollster.models import Pollster @@ -44,10 +45,6 @@ __all__ = [ ] -def is_image_file(value): - return hasattr(value, "name") - - def clean_data(value): if isinstance(value, dict): |