From f09fa4a2c22304b45bd3cfbf282b9d73375ab5e8 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 19 Aug 2025 16:55:03 -0400 Subject: [PATCH] Correct import path for register_model_feature() --- docs/plugins/development/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/development/models.md b/docs/plugins/development/models.md index 519095314..2582fd4bf 100644 --- a/docs/plugins/development/models.md +++ b/docs/plugins/development/models.md @@ -124,7 +124,7 @@ For more information about database migrations, see the [Django documentation](h ## Custom Model Features -In addition to utilizing the model features provided natively by NetBox (listed above), plugins can register their own model features. This is done using the `register_model_feature()` function from `netbox.models.features`. This function takes two arguments: a feature name, and a callable which accepts a model class. The callable must return a boolean value indicting whether the given model supports the named feature. +In addition to utilizing the model features provided natively by NetBox (listed above), plugins can register their own model features. This is done using the `register_model_feature()` function from `netbox.utils`. This function takes two arguments: a feature name, and a callable which accepts a model class. The callable must return a boolean value indicting whether the given model supports the named feature. This function can be used as a decorator: