mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
use hashid for serialization
This commit is contained in:
parent
b8637fcb9f
commit
c27d6ec0fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user