Disregard the last 3 dots that mark the end of the YAML document.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
- Add support for rendering workflows.
|
- Add support for rendering workflows.
|
||||||
- Add support for unbinding sub menus.
|
- Add support for unbinding sub menus.
|
||||||
- Fix mailing profile test view.
|
- Fix mailing profile test view.
|
||||||
|
- Disregard the last 3 dots that mark the end of the YAML document.
|
||||||
|
|
||||||
2.6.4 (2017-07-26)
|
2.6.4 (2017-07-26)
|
||||||
==================
|
==================
|
||||||
|
|||||||
@@ -81,7 +81,13 @@ class Setting(object):
|
|||||||
if isinstance(value, Promise):
|
if isinstance(value, Promise):
|
||||||
value = force_text(value)
|
value = force_text(value)
|
||||||
|
|
||||||
return yaml.safe_dump(value, allow_unicode=True)
|
result = yaml.safe_dump(value, allow_unicode=True)
|
||||||
|
# safe_dump returns bytestrings
|
||||||
|
# Disregard the last 3 dots that mark the end of the YAML document
|
||||||
|
if result.endswith(b'...\n'):
|
||||||
|
result = result[:-4]
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get(cls, global_name):
|
def get(cls, global_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user