I have legacy software that stores the institutions logo through django's BinaryField, I need to show this image on the django admin record editing page
this my admin:
class InstituicaoAdmin(admin.ModelAdmin):
    list_display = ['ds_instituicao', 'sigla']
    search_fields = ['ds_instituicao']
    formfield_overrides = {
        BinaryField: {'widget': BinaryFileInput()},
    }
    readonly_fields = ["imagem_logo",]
    def imagem_logo(self, obj):
        base64Encoded = base64.b64encode(obj.logo)
        return mark_safe('<img src="data:;base64,base64Encoded">')
This not work
I want some like this: Image_FIeld
 
    