so I've defined readonly_fields in Django ModelAdmin with a callable which looks like this:
class TestAdmin(admin.ModelAdmin):
readonly_fields = ("test_field_with_whitespace",)
def test_field_with_whitespace(self, obj):
return ' Hello World'
In the corresponding admin view the readonly field is shown as "Hello World" - so without the whitespaces.
What can I do to show the whitespaces?