wagtail 5.2.3__py3-none-any.whl → 5.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
wagtail/__init__.py CHANGED
@@ -6,7 +6,7 @@ from wagtail.utils.version import get_semver_version, get_version
6
6
 
7
7
  # major.minor.patch.release.number
8
8
  # release must be one of alpha, beta, rc, or final
9
- VERSION = (5, 2, 3, "final", 1)
9
+ VERSION = (5, 2, 5, "final", 1)
10
10
 
11
11
  __version__ = get_version(VERSION)
12
12
 
@@ -78,7 +78,11 @@ class TitleFieldPanel(FieldPanel):
78
78
  actions = [widget.attrs.get("data-action", None)] + self.apply_actions
79
79
  attrs["data-action"] = " ".join(filter(None, actions))
80
80
 
81
- targets = [self.get_target_selector(target) for target in panel.targets]
81
+ targets = [
82
+ self.get_target_selector(target)
83
+ for target in panel.targets
84
+ if target in self.form.fields
85
+ ]
82
86
  attrs["data-w-sync-target-value"] = ", ".join(filter(None, targets))
83
87
 
84
88
  placeholder = self.get_placeholder()