mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +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,
|
||||
**kwargs,
|
||||
):
|
||||
"""Return a fully-qualified path for an 'uploaded' image.
|
||||
"""Return raw image data from an 'uploaded' image.
|
||||
|
||||
Arguments:
|
||||
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
|
||||
|
||||
Returns:
|
||||
A fully qualified path to the image
|
||||
Binary image data to be rendered directly in a <img> tag
|
||||
|
||||
Raises:
|
||||
FileNotFoundError if the file does not exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user