FlipperPA / peregrine

Peregrine is an opinionated blog for Wagtail and Django.
BSD 3-Clause "New" or "Revised" License
48 stars 10 forks source link

AttributeError at /cms/pages/3/edit/preview/ 'WSGIRequest' object has no attribute 'site' #11

Closed onsombal closed 3 years ago

onsombal commented 6 years ago

Draft "Preview" returns the error shown above. When the page is "Published", it displays perfectly.

Thoughts?

FlipperPA commented 6 years ago

I think https://github.com/FlipperPA/peregrine/pull/3 may deal with this. Let me take a look today. Thanks for the report!

tdxdave commented 3 years ago

I am getting this 3 years later, due to site api changes in Wagtail 2.9.