2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix docstring for uploaded_image (#8077)

This commit is contained in:
Oliver 2024-09-05 14:47:33 +10:00 committed by GitHub
parent 9b272bd60f
commit f8c53bc9e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ def uploaded_image(
validate=True, validate=True,
**kwargs, **kwargs,
): ):
"""Return a fully-qualified path for an 'uploaded' image. """Return raw image data from an 'uploaded' image.
Arguments: Arguments:
filename: The filename of the image relative to the MEDIA_ROOT directory filename: The filename of the image relative to the MEDIA_ROOT directory
@ -124,7 +124,7 @@ def uploaded_image(
rotate: Optional rotation to apply to the image rotate: Optional rotation to apply to the image
Returns: Returns:
A fully qualified path to the image Binary image data to be rendered directly in a <img> tag
Raises: Raises:
FileNotFoundError if the file does not exist FileNotFoundError if the file does not exist