From 5eb3927968bcb6edfa53974664a7034bc0a38381 Mon Sep 17 00:00:00 2001 From: Chris Russell Date: Fri, 30 Aug 2024 00:05:49 +0100 Subject: [PATCH] version bump --- README.md | 2 +- netbox_reorder_rack/__init__.py | 2 +- netbox_reorder_rack/api/views.py | 5 ----- setup.py | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a079589..70ce569 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ systemctl restart netbox | netbox version | plugin version | | -------------- | ----------------------------- | -| >= 4.0.0 | >= v1.1.0 | +| >= 4.0.0 < 4.1.0 | >= v1.1.2 | | <= 4.0.0 | = v1.0.0 | ## Dependencies diff --git a/netbox_reorder_rack/__init__.py b/netbox_reorder_rack/__init__.py index d85bf3d..fa63b3b 100644 --- a/netbox_reorder_rack/__init__.py +++ b/netbox_reorder_rack/__init__.py @@ -5,7 +5,7 @@ class NetboxReorderRackConfig(PluginConfig): name = "netbox_reorder_rack" verbose_name = "NetBox Reorder Rack" description = "NetBox plugin to reorder rack layouts." - version = "1.1.1" + version = "1.1.2" base_url = "reorder" diff --git a/netbox_reorder_rack/api/views.py b/netbox_reorder_rack/api/views.py index 638e2c5..09b59ca 100644 --- a/netbox_reorder_rack/api/views.py +++ b/netbox_reorder_rack/api/views.py @@ -29,11 +29,6 @@ def update(self, request, pk): try: serializer = ReorderRackSerializer(request.data) with transaction.atomic(): - #for device in rack.devices.all(): - # device.position = None - # device.clean() - # device.save() - for new in request.data["front"]: device = rack.devices.filter(pk=new["id"]).first() current_device = get_object_or_404(Device, pk=new["id"]) diff --git a/setup.py b/setup.py index 34ceb14..2d3b796 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="netbox_reorder_rack", - version="1.1.1", + version="1.1.2", author="Alex Gittings", author_email="agitting96@gmail.com", description="NetBox plugin to reorder rack layouts.",