Commit c9e76e71 authored by Jim Driessen's avatar Jim Driessen
Browse files

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()
......
Supports Markdown
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