(value, field, empty_value_display)
return display_for_field(value, field, empty_value_display)
Overriding display_for_field to correctly render JSONField READonly fields
    in django-admin. Relevant when DJSTRIPE_USE_NATIVE_JSONFIELD is False
    Note: This does not handle invalid JSON. That should be handled by the JSONField itself
Overriding display_for_field to correctly render JSONField READonly fields
    in django-admin. Relevant when DJSTRIPE_USE_NATIVE_JSONFIELD is False
    Note: This does not handle invalid JSON. That should be handled by the JSONField itself
Overriding display_for_field to correctly render JSONField READonly fields in django - admin . Relevant when DJSTRIPE_USE_NATIVE_JSONFIELD is False Note : This does not handle invalid JSON . That should be handled by the JSONField itself
def custom_display_for_JSONfield(value, field, empty_value_display):
    """
    Overriding display_for_field to correctly render JSONField READonly fields
    in django-admin. Relevant when DJSTRIPE_USE_NATIVE_JSONFIELD is False
    Note: This does not handle invalid JSON. That should be handled by the JSONField itself
    """
    # we manually JSON serialise in case field is from jsonfield module
    if isinstance(field, JSONField) and value:
        try:
            return json.dumps(value)
        except TypeError:
            return display_for_value(value, empty_value_display)
    return display_for_field(value, field, empty_value_display)
def custom_display_for_JSONfield ( value , field , empty_value_display ) : # we manually JSON serialise in case field is from jsonfield module if isinstance ( field , JSONField ) and value : try : return json . dumps ( value ) except TypeError : return display_for_value ( value , empty_value_display ) return display_for_field ( value , field , empty_value_display )