From e216bebd41e1afbaec5529ff49d72dd0cd850e80 Mon Sep 17 00:00:00 2001 From: Eric Oswald Date: Fri, 12 Jul 2024 16:43:44 -0400 Subject: [PATCH] Fix incorrect import in rest-api.md --- docs/plugins/development/rest-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugins/development/rest-api.md b/docs/plugins/development/rest-api.md index ea195dafc0..57ad685294 100644 --- a/docs/plugins/development/rest-api.md +++ b/docs/plugins/development/rest-api.md @@ -84,11 +84,11 @@ To create a viewset for a plugin model, subclass `NetBoxModelViewSet` in `api/vi ```python # api/views.py -from netbox.api.viewsets import ModelViewSet +from netbox.api.viewsets import NetBoxModelViewSet from my_plugin.models import MyModel from .serializers import MyModelSerializer -class MyModelViewSet(ModelViewSet): +class MyModelViewSet(NetBoxModelViewSet): queryset = MyModel.objects.all() serializer_class = MyModelSerializer ```