mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-30 18:22:45 +00:00 
			
		
		
		
	use hashid for serialization
This commit is contained in:
		| @@ -271,7 +271,7 @@ class Avatar(HashidMixin, FileMixin, db.Model): | |||||||
|  |  | ||||||
|     def to_json_serializeable(self, backrefs=False, relationships=False): |     def to_json_serializeable(self, backrefs=False, relationships=False): | ||||||
|         json_serializeable = { |         json_serializeable = { | ||||||
|             'id': self.id, |             'id': self.hashid, | ||||||
|             **self.file_mixin_to_json_serializeable() |             **self.file_mixin_to_json_serializeable() | ||||||
|         } |         } | ||||||
|         return json_serializeable |         return json_serializeable | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user