diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-27 10:58:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 10:58:38 +0100 |
| commit | 38fc6fa35ca4545a6068aaa759359c271c9f5197 (patch) | |
| tree | 7a473d575f04223b57cc103a97a341be9d4bb55a /api/opendc/util/rest.py | |
| parent | 89cba029a37e79b7c730caffc04ce547cda4837c (diff) | |
| parent | 839b332a2b9d7dcb5536c080e822f85447b615de (diff) | |
Merge pull request #50 from atlarge-research/bug/bson-objectid
Use BSON ObjectId for model identifiers
Diffstat (limited to 'api/opendc/util/rest.py')
| -rw-r--r-- | api/opendc/util/rest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/opendc/util/rest.py b/api/opendc/util/rest.py index abd2f3de..c9e98295 100644 --- a/api/opendc/util/rest.py +++ b/api/opendc/util/rest.py @@ -138,4 +138,4 @@ class Response: if self.content is not None: data['content'] = self.content - return json.dumps(data) + return json.dumps(data, default=str) |
