use hashid for serialization

This commit is contained in:
Patrick Jentsch 2022-12-19 15:46:17 +01:00
parent b8637fcb9f
commit c27d6ec0fe

View File

@ -271,7 +271,7 @@ class Avatar(HashidMixin, FileMixin, db.Model):
def to_json_serializeable(self, backrefs=False, relationships=False):
json_serializeable = {
'id': self.id,
'id': self.hashid,
**self.file_mixin_to_json_serializeable()
}
return json_serializeable