We planned to upgrade GitLab and Mattermost to the latest version this Friday morning. Expect some downtime!

Commit c9e76e71 authored by Jim Driessen's avatar Jim Driessen

Fix not being able to update profile photo.

parent 52f82136
......@@ -21,7 +21,7 @@
</div>
{% endif %}
<form method="post" class="form-horizontal span8 offset2">
<form method="post" enctype="multipart/form-data" class="form-horizontal span8 offset2">
{% csrf_token %}
{% for field in form %}
......
......@@ -140,7 +140,7 @@ def edit_profile(request):
saved = False
if request.POST:
form = MemberForm(request.POST, instance=member)
form = MemberForm(request.POST, request.FILES, instance=member)
if form.is_valid():
saved = True
form.save()
......
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