Sfoglia il codice sorgente

"keys" is optional.

pull/61/head
Tomasz Wysocki 10 anni fa
parent
commit
25c02407ba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      pinry/core/views.py

+ 1
- 1
pinry/core/views.py Vedi File

@@ -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': {


Caricamento…
Annulla
Salva