Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
5 changes: 2 additions & 3 deletions wagtailstreamforms/blocks.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down