Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel2392 committed Jun 6, 2024
1 parent 31e446b commit 65985ac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = wagtail_fedit
version = 1.6.0
version = 1.6.1
description = Frontend editing for your Wagtail site
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
3 changes: 0 additions & 3 deletions wagtail_fedit/templatetags/fedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ def render(self, context):
except AttributeError:
raise TemplateSyntaxError(f"Object {model.__class__.__name__} does not have attribute {getter}")

if PAGE_TEMPLATE_VAR in context and isinstance(obj, Page):
kwargs["wagtail_template_page_instance"] = obj

request = context.get("request")
adapter = self.adapter(
object=obj,
Expand Down
3 changes: 0 additions & 3 deletions wagtail_fedit/views/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ def get_context_data(self, **kwargs):
# Wagtail uses this internally; for example in `{% wagtailpagecache %}`
extra[PAGE_TEMPLATE_VAR] = self.instance

if "wagtail_template_page_instance" in self.adapter.kwargs:
extra[PAGE_TEMPLATE_VAR] = self.adapter.kwargs["wagtail_template_page_instance"]

# Form context; used for rendering the modal.
if "form" in kwargs:
extra.update({
Expand Down

0 comments on commit 65985ac

Please sign in to comment.