From 9ea2587fae999a2d83a8cc57cfe9ef008787856d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 3 Jul 2023 17:48:26 +0200 Subject: [PATCH] Development/ArrayField - add note for https://github.com/opnsense/core/commit/3408cbf6614da2758521ed9ab25b9f12ce88a647 (getStaticChildren()) --- source/development/frontend/models_fieldtypes.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/development/frontend/models_fieldtypes.rst b/source/development/frontend/models_fieldtypes.rst index 05bd099..605762e 100644 --- a/source/development/frontend/models_fieldtypes.rst +++ b/source/development/frontend/models_fieldtypes.rst @@ -28,6 +28,11 @@ The basic field type to describe a container of objects, such as a list of addre This type can't be nested, only one level of ArrayField types is supported, you can use ModelRelationField to describe master-detail constructions. +.. Tip:: + + In case a model needs static (non persistent) records, the :code:`getStaticChildren()` method may be implemented + to spawn static entries. See also the custom field chapter for implementation scenarios. + AuthGroupField ------------------------------------