Skip to content

Commit

Permalink
Fix incorrect import in rest-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eoswald authored and jeremystretch committed Jul 13, 2024
1 parent d39acfd commit e216beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/plugins/development/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit e216beb

Please sign in to comment.