Skip to content

Commit 9ea2587

Browse files
committed
Development/ArrayField - add note for opnsense/core@3408cbf (getStaticChildren())
1 parent 470ff97 commit 9ea2587

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/development/frontend/models_fieldtypes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ The basic field type to describe a container of objects, such as a list of addre
2828
This type can't be nested, only one level of ArrayField types is supported, you can use ModelRelationField to
2929
describe master-detail constructions.
3030

31+
.. Tip::
32+
33+
In case a model needs static (non persistent) records, the :code:`getStaticChildren()` method may be implemented
34+
to spawn static entries. See also the custom field chapter for implementation scenarios.
35+
3136

3237
AuthGroupField
3338
------------------------------------

0 commit comments

Comments
 (0)