diff --git a/README.md b/README.md index 6c156f1..a78dc5e 100644 --- a/README.md +++ b/README.md @@ -68,15 +68,6 @@ PLUGINS = [ ] PLUGINS_CONFIG = { - "netbox_ptov": {}, + "netbox_ptov": {'top_level_menu': False}, } ``` - -## Credits - -Based on the NetBox plugin tutorial: - -- [demo repository](https://github.com/netbox-community/netbox-plugin-demo) -- [tutorial](https://github.com/netbox-community/netbox-plugin-tutorial) - -This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [`netbox-community/cookiecutter-netbox-plugin`](https://github.com/netbox-community/cookiecutter-netbox-plugin) project template. diff --git a/netbox_ptov/_version.py.obsolete b/netbox_ptov/_version.py.obsolete deleted file mode 100644 index aca2674..0000000 --- a/netbox_ptov/_version.py.obsolete +++ /dev/null @@ -1,3 +0,0 @@ -"""Defines the Django models used by the netbox_ptov plugin. Obsoleted by the use of setup-scm.""" - -__version__ = "0.1.21" diff --git a/netbox_ptov/views.py b/netbox_ptov/views.py index 34d51e7..1acfa10 100644 --- a/netbox_ptov/views.py +++ b/netbox_ptov/views.py @@ -9,7 +9,9 @@ import json -def golab(request: json): +def golab(request: forms.golabForm) -> django.http.HttpResponse: + """Pass the input fields from the golabForm instance to the dcnodatg.p_to_v function and return the results as an HttpResponse""" + if request.method == 'POST': form = forms.golabForm(request.POST) if form.is_valid(): @@ -53,7 +55,6 @@ class gns3srvEditView(generic.ObjectEditView): """A class to represent the edit view of a gns3srv object. ============================================================= - Attributes ---------- queryset