diff --git a/pyproject.toml b/pyproject.toml index 514fba1..638281c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ exclude = ["tests*", "docs*"] [project] name = "wagtailstreamforms" -version = "5.2.2" +version = "5.2.3" description = "" authors = [{ name = "Lab Digital BV", email = "info@labdigital.nl" }] dependencies = [ diff --git a/wagtailstreamforms/blocks.py b/wagtailstreamforms/blocks.py index a9ae59a..db0625b 100644 --- a/wagtailstreamforms/blocks.py +++ b/wagtailstreamforms/blocks.py @@ -1,6 +1,5 @@ import uuid -from django.utils.functional import cached_property from django.utils.safestring import SafeText, mark_safe from django.utils.translation import gettext_lazy as _ from wagtail import blocks @@ -14,13 +13,13 @@ def render_form(self, value, prefix="", errors=None) -> SafeText: class FormChooserBlock(blocks.ChooserBlock): - @cached_property + @property def target_model(self): from .models import Form return Form - @cached_property + @property def widget(self): from .wagtail_hooks import WagtailStreamFormsChooser