mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-09 15:53:22 +00:00
Add picture size in sas api
This commit is contained in:
parent
cb1aa8bef0
commit
0c566cfbde
@ -17,7 +17,7 @@ class PictureFilterSchema(FilterSchema):
|
|||||||
class PictureSchema(ModelSchema):
|
class PictureSchema(ModelSchema):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Picture
|
model = Picture
|
||||||
fields = ["id", "name", "date"]
|
fields = ["id", "name", "date", "size"]
|
||||||
|
|
||||||
author: SimpleUserSchema = Field(validation_alias="owner")
|
author: SimpleUserSchema = Field(validation_alias="owner")
|
||||||
full_size_url: str
|
full_size_url: str
|
||||||
|
Loading…
Reference in New Issue
Block a user