Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle configurable comments relation (Wagtail 2.15 fix)
The 'comments' relation on Page will be renamed to 'wagtail_admin_comments' in Wagtail 2.15, as per wagtail/wagtail#7591, and 2.13.5 / 2.14.2 will allow developers to 'opt in' to the new name to prevent conflicts with third-party packages that also use the name 'comments' (wagtail/wagtail#7600 / wagtail/wagtail#7601). We therefore need to recognise the relation name in use, rather than hard-coding 'comments'.
- Loading branch information