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:
parent
9b272bd60f
commit
f8c53bc9e5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user