Skip to content

Commit f3e7e3d

Browse files
author
oko-x
committed
triv: fix form initialisation
1 parent 6f93dde commit f3e7e3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-smartbase-admin"
3-
version = "0.2.24"
3+
version = "0.2.25"
44
description = ""
55
authors = ["SmartBase <[email protected]>"]
66
readme = "README.md"

src/django_smartbase_admin/admin/admin_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ def __init__(self, *args, **kwargs):
239239
for field in self.declared_fields:
240240
form_field = self.fields.get(field)
241241
if form_field:
242-
self.assign_widget_to_form_field(form_field)
242+
self.assign_widget_to_form_field(
243+
form_field, request=self.threadsafe_request
244+
)
243245

244246

245247
class SBAdminBaseForm(

0 commit comments

Comments
 (0)