Use thumbnail in profile_update.

This commit is contained in:
2020-12-25 14:29:38 +01:00
parent 67ce6cb50b
commit 011a58f6b3
2 changed files with 4 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class ExplorerProfileUpdateView(IsAuthenticatedMixin, View):
'explorer_change_form': ExplorerChangeForm(instance=request.user.explorer)
}
if request.user.explorer.profile_image:
context['explorer_image_url'] = request.user.explorer.profile_image.url
context['explorer_image'] = request.user.explorer.profile_image
return render(request, 'explorer/profile_update.html', context)
def post(self, request, *args, **kwargs):