File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -327,9 +327,13 @@ def model_form(
327327 :param only:
328328 An optional iterable with the property names that should be included in
329329 the form. Only these properties will have fields.
330+ Fields are always appear in provided order, this allows user to change form
331+ fields ordering, without changing database model.
330332 :param exclude:
331333 An optional iterable with the property names that should be excluded
332334 from the form. All other properties will have fields.
335+ Fields are appears in order, defined in model, excluding provided fields
336+ names. For adjusting fields ordering, use :attr:`only`.
333337 :param field_args:
334338 An optional dictionary of field names mapping to keyword arguments used
335339 to construct each field object.
You can’t perform that action at this time.
0 commit comments