def get_caption_formatted(self, field_formats = app_settings.MEDIA_TREE_METADATA_FORMATS, escape=True):
        """Returns object metadata that has been selected to be displayed to
        users, compiled as a string including default formatting, for example
        bold titles.

        You can use this method in templates where you want to output image
        captions.
        """
        if self.override_caption != '':
            return self.override_caption
        else:
            return mark_safe(self.get_metadata_display(field_formats, escape=escape))
def get_caption_formatted ( self , field_formats = app_settings . MEDIA_TREE_METADATA_FORMATS , escape = True ) : if self . override_caption != '' : return self . override_caption else : return mark_safe ( self . get_metadata_display ( field_formats , escape = escape ) )
Returns object metadata that has been selected to be displayed to
        users, compiled as a string including default formatting, for example
        bold titles.

        You can use this method in templates where you want to output image
        captions.