Commits

Maciej Wiśniowski committed 8cabac1

Fixed issue #24: Update images/files fails when called during upload.

Comments (0)

Files changed (1)

lfc/manage/views.py

         message = _(u"Files has been updated.")
 
         for file in obj.files.all():
-            if "title-%s" % image.id in request.POST.keys():
+            if "title-%s" % file.id in request.POST.keys():
                 file.title = request.POST.get("title-%s" % file.id)
                 file.position = request.POST.get("position-%s" % file.id)
                 file.save()