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

[common][models] Improved declaration_string to ensure a string is returned

parent 5f880c2a
No related branches found
No related tags found
2 merge requests!2551.4.x,!249Web fixes
......@@ -41,6 +41,7 @@ from . import storage
from .exceptions import NotUserNorTeam
from .signals import shared
from .utils import ensure_string
import os
import re
......@@ -640,7 +641,8 @@ def get_declaration(instance):
def get_declaration_string(instance):
return storage.get_file_content(instance, 'declaration_file')
data = storage.get_file_content(instance, 'declaration_file')
return ensure_string(data)
#----------------------------------------------------------
......
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