Skip to content

Commit 57306a3

Browse files
committed
fix: Properly assigning extra fields for grid forms
1 parent cd3923d commit 57306a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

djangocms_frontend/contrib/grid/forms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ class Meta:
127127
)
128128

129129

130-
GridRowBaseForm.Meta.entangled_fields["config"] += extra_fields_column.keys()
130+
GridRowBaseForm._meta.entangled_fields["config"] += extra_fields_column.keys()
131131

132132

133133
GridRowForm = type(
134-
"GridRowBaseForm",
134+
"GridRowForm",
135135
(GridRowBaseForm,),
136136
copy(extra_fields_column),
137137
)
@@ -226,10 +226,10 @@ def clean(self):
226226
widget=forms.HiddenInput() if "{size}_me" in getattr(settings, "EXCL_COL_PROP", ()) else forms.CheckboxInput(),
227227
)
228228

229+
GridColumnBaseForm._meta.entangled_fields["config"] += extra_fields_column.keys()
230+
229231
GridColumnForm = type(
230232
"GridColumnForm",
231233
(GridColumnBaseForm,),
232234
copy(extra_fields_column),
233235
)
234-
235-
GridColumnForm._meta.entangled_fields["config"] += extra_fields_column.keys()

0 commit comments

Comments
 (0)