Skip to content

Commit

Permalink
Skip custom get method, use djangos default get method
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoorman committed Nov 22, 2016
1 parent be20bcb commit 71c9ff5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/wagtailbakery/views.py
Expand Up @@ -9,12 +9,6 @@ class WagtailBakeryView(BuildableDetailView):
An abstract class that can be inherited to create a buildable view that can
be added to BAKERY_VIEWS setting.
"""
def get(self, request):
middleware = SiteMiddleware()
middleware.process_request(request)
response = serve(request, request.path)
return response

def get_site(self):
"""Return the site were to build the static pages from.
Expand Down
9 changes: 9 additions & 0 deletions tests/templates/wagtailcore/page_detail.html
@@ -0,0 +1,9 @@
<!DOCTYPE HTML>
<html>
<head>
<title>{{ self.title }}</title>
</head>
<body>
<h1>{{ self.title }}</h1>
</body>
</html>

0 comments on commit 71c9ff5

Please sign in to comment.