Skip to content
Snippets Groups Projects
Commit c27d6ec0 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

use hashid for serialization

parent b8637fcb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment