Skip to content

Commit 75b1259

Browse files
committed
Docstrings related to #53
1 parent 65e4ef0 commit 75b1259

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flask_mongoengine/wtf/orm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)