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
La Quadrature du Net
piphone
campaign
Commits
fe7b9eae
Commit
fe7b9eae
authored
Jun 13, 2017
by
Okhin
Browse files
Needs to pass the request to get_current_site
parent
cd90b23f
Pipeline
#1139
passed with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
picampaign/organization/serializers.py
View file @
fe7b9eae
...
...
@@ -33,5 +33,5 @@ class OrganizationSerializer(serializers.ModelSerializer):
def
get_logo
(
self
,
obj
):
if
obj
.
logo
:
return
get_current_site
()
+
obj
.
logo
.
url
return
get_current_site
(
self
.
context
.
get
(
"request"
)
)
+
obj
.
logo
.
url
return
None
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