torchbox / wagtailguide

An app for adding a CMS guide to your Wagtail CMS
MIT License
24 stars 8 forks source link

Update for wagtail 2.10 - remove request.site reference #11

Closed tombola closed 4 years ago

tombola commented 4 years ago

https://docs.wagtail.io/en/latest/releases/2.9.html#upgrade-considerations

As of wagtail 2.10 request.site is no longer available. The suggested replacement appears to have been available way back, so shouldn't cause backwards compatibility issues.

squash-labs[bot] commented 4 years ago

Manage this branch in Squash

Test this branch here: https://tombolaupdate-for-wagtail-210-2s0qr.squash.io
tombola commented 4 years ago

Pipeline test failure above will be resolved by #9

sourcery-ai[bot] commented 4 years ago

Sourcery Code Quality Report (beta)

❌  Merging this PR will decrease code quality in the affected files by 0.04 out of 10.

Quality metrics Before After Change
Complexity 1.50 1.50 0.00
Method Length 27.96 29.96 2.00 🔴
Quality 9.16 9.12 -0.04 🔴
Other metrics Before After Change
Lines 20 23 3
Changed files Quality Before Quality After Quality Change
wagtail_guide/views.py 9.16 9.12 -0.04 🔴

Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it via email or our Gitter!