Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
71244c08
Verified
Commit
71244c08
authored
May 31, 2017
by
Sébastiaan Versteeg
Browse files
Fix default-avatar uri
parent
c40da761
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/api/serializers.py
View file @
71244c08
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'
)
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment