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-07-31 00:45:17 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-07-31 02:18:06 (GMT)
commit4cf5c2b581d12dd8c23efcf7c7b667e9e4efde80 (patch)
tree82a38aea5c67c165acbfb140d35523168cd8a655 /webapp/polls/views.py
parent9b17f03e8ab9e40e95b87f595b8c81bea1272fcb (diff)
Save image for a field
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r--webapp/polls/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py
index 9a5a631..a2239a3 100644
--- a/webapp/polls/views.py
+++ b/webapp/polls/views.py
@@ -230,6 +230,7 @@ class StructureFormView(TemplateView):
if structure.is_valid(new_data=data):
try:
structure.save_image_options(tmp=False)
+ structure.save_image_fields()
structure.save()
except Exception:
msg = u'Ocurrió un error, no se guardó la estructura.'
@@ -254,6 +255,7 @@ class StructureFormView(TemplateView):
)
else:
structure.save_image_options(tmp=True)
+ structure.save_image_fields()
context.update({'errors': structure.errors})
messages.add_message(
self.request,