Add photo.simple_mimetype to jsonify.

master
voussoir 2021-05-24 20:42:44 -07:00
parent 387b7f1096
commit cad360bc3f
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 0 deletions

View File

@ -1085,6 +1085,7 @@ class Photo(ObjectBase):
'filename': self.basename,
'mimetype': self.mimetype,
'searchhidden': bool(self.searchhidden),
'simple_mimetype': self.simple_mimetype,
}
if include_albums:
j['albums'] = [album.jsonify(minimal=True) for album in self.get_containing_albums()]