Skip to content

Commit 4615aeb

Browse files
authored
triv: fixed missing view on form
* triv: fixed missing view on form * triv: fixed missing view on form --------- Co-authored-by: Viliam Mihalik <[email protected]>
1 parent 148ee69 commit 4615aeb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-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.14"
3+
version = "0.2.15"
44
description = ""
55
authors = ["SmartBase <[email protected]>"]
66
readme = "README.md"

src/django_smartbase_admin/admin/admin_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def formfield_for_dbfield(self, db_field, request, **kwargs):
194194

195195
class SBAdminBaseFormInit(SBAdminFormFieldWidgetsMixin):
196196
threadsafe_request = None
197+
view = None
197198

198199
def __init__(self, *args, **kwargs):
199200
super().__init__(*args, **kwargs)

src/django_smartbase_admin/admin/widgets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def __init__(self, form_field=None, attrs=None):
9191
class SBAdminCKEditorWidget(SBAdminBaseWidget, CKEditorWidget):
9292

9393
def __init__(self, form_field=None, attrs=None):
94-
super().__init__(form_field, template_name="sb_admin/widgets/ckeditor.html", attrs=attrs)
94+
super().__init__(
95+
form_field, template_name="sb_admin/widgets/ckeditor.html", attrs=attrs
96+
)
9597

9698

9799
class SBAdminSelectWidget(SBAdminBaseWidget, forms.Select):

0 commit comments

Comments
 (0)