Commit ae88d3b
committed
feat: register telepath ObjectId adapter in project template
Wagtail's sidebar serializes page IDs via telepath, which has no
built-in handler for MongoDB ObjectId. This adds wagtail_hooks.py to
the project template that overrides build_node to delegate to
telepath's string primitive handler, fixing the UnpackableTypeError
at /cms/ on first load.1 parent 1851e40 commit ae88d3b
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments