瀏覽代碼

"keys" is optional.

pull/61/head
Tomasz Wysocki 10 年之前
父節點
當前提交
25c02407ba
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      pinry/core/views.py

+ 1
- 1
pinry/core/views.py 查看文件

@@ -22,7 +22,7 @@ class CreateImage(JSONResponseMixin, LoginRequiredMixin, CreateView):

def form_valid(self, form):
image = form.save()
for size in settings.IMAGE_SIZES.keys():
for size in settings.IMAGE_SIZES:
Thumbnail.objects.get_or_create_at_size(image.pk, size)
return self.render_json_response({
'success': {


Loading…
取消
儲存