Skip to content

Commit bd58a1b

Browse files
committed
Move extra props arg
1 parent 282e542 commit bd58a1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/reactpy_django/components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ def django_js(static_path: str, key: Key | None = None):
121121
def django_form(
122122
form: type[Form | ModelForm],
123123
*,
124-
extra_props: dict[str, Any] | None = None,
125124
on_success: Callable[[FormEvent], None] | None = None,
126125
on_error: Callable[[FormEvent], None] | None = None,
127126
on_submit: Callable[[FormEvent], None] | None = None,
128127
on_change: Callable[[FormEvent], None] | None = None,
129128
auto_save: bool = True,
129+
extra_props: dict[str, Any] | None = None,
130130
extra_transforms: Sequence[Callable[[VdomDict], Any]] | None = None,
131131
form_template: str | None = None,
132132
top_children: Sequence = (),
@@ -135,12 +135,12 @@ def django_form(
135135
):
136136
return _django_form(
137137
form=form,
138-
extra_props=extra_props or {},
139138
on_success=on_success,
140139
on_error=on_error,
141140
on_submit=on_submit,
142141
on_change=on_change,
143142
auto_save=auto_save,
143+
extra_props=extra_props or {},
144144
extra_transforms=extra_transforms or [],
145145
form_template=form_template,
146146
top_children=top_children,

src/reactpy_django/forms/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
@component
3535
def _django_form(
3636
form: type[Form | ModelForm],
37-
extra_props: dict,
3837
on_success: Callable[[FormEvent], None] | None,
3938
on_error: Callable[[FormEvent], None] | None,
4039
on_submit: Callable[[FormEvent], None] | None,
4140
on_change: Callable[[FormEvent], None] | None,
4241
auto_save: bool,
42+
extra_props: dict,
4343
extra_transforms: Sequence[Callable[[VdomDict], Any]],
4444
form_template: str | None,
4545
top_children: Sequence,

0 commit comments

Comments
 (0)