Skip to content
Snippets Groups Projects
Commit 804d6924 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[experiments][serializers] Fix description related getters

parent ccf5d258
No related branches found
No related tags found
2 merge requests!2551.4.x,!249Web fixes
......@@ -275,13 +275,13 @@ class ExperimentResultsSerializer(ShareableSerializer):
return serializer.data
def get_html_description(self, obj):
d = obj.description.decode('utf-8')
d = obj.description
if len(d) > 0:
return restructuredtext(d)
return ''
def get_description(self, obj):
return obj.description.decode('utf-8')
return obj.description
def get_display_start_date(self, obj):
if obj.start_date is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment