Skip to content

Settings panel: DjangoUnicodeDecodeError #2172

@gvangool

Description

@gvangool

The SettingsPanel will force all values into a string, and for us some are just random bytes.

def generate_stats(self, request, response):
self.record_stats(
{
"settings": {
key: force_str(value)
for key, value in sorted(get_safe_settings().items())
}
}
)

This is related to the new serialization work that landed #2138.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions