Commit 494062fb authored by Skia's avatar Skia

Fix thumbnail generation for album upload view

parent bf8a2a03
Pipeline #741 passed with stage
in 3 minutes and 5 seconds
......@@ -157,6 +157,8 @@ class AlbumUploadView(CanViewMixin, DetailView, FormMixin):
def post(self, request, *args, **kwargs):
self.object = self.get_object()
if not self.object.file:
self.object.generate_thumbnail()
self.form = self.get_form()
parent = SithFile.objects.filter(id=self.object.id).first()
files = request.FILES.getlist('images')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment