Verified Commit 71244c08 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix default-avatar uri

parent c40da761
from django.templatetags.static import static
from django.urls import reverse
from django.utils import timezone
from django.utils.html import strip_tags
......@@ -200,4 +201,4 @@ class RegistrationSerializer(serializers.ModelSerializer):
'%s%s' % (settings.MEDIA_URL, instance.member.photo))
else:
return self.context['request'].build_absolute_uri(
'members/images/default-avatar.jpg')
static('members/images/default-avatar.jpg'))
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