From 8f73ec24881abf9c14d5bf715d2e3d2eb916c6fb Mon Sep 17 00:00:00 2001 From: Chris Russell Date: Tue, 3 Dec 2024 17:09:38 +0000 Subject: [PATCH] revert version + fix underscore bug --- README.md | 2 +- netbox_floorplan/utils.py | 2 +- netbox_floorplan/version.py | 2 +- setup.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cd7f110..e40bddc 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ A netbox plugin providing floorplan mapping capability for locations and sites | 3.5 | >= 0.3.2 | | 3.6 | >= 0.3.2 | | 4.0.x | 0.4.1 | -| 4.1.x | 0.5.0 | ## Installing @@ -43,6 +42,7 @@ Enable Migrations: cd /opt/netbox sudo ./venv/bin/python3 netbox/manage.py makemigrations netbox_floorplan_plugin sudo ./venv/bin/python3 netbox/manage.py migrate +sudo ./venv/bin/python3 netbox/manage.py collectstatic ``` Restart NetBox and add `netbox-floorplan-plugin` to your local_requirements.txt diff --git a/netbox_floorplan/utils.py b/netbox_floorplan/utils.py index 69150ce..aeaf431 100644 --- a/netbox_floorplan/utils.py +++ b/netbox_floorplan/utils.py @@ -5,4 +5,4 @@ def file_upload(instance, filename): """ path = 'netbox-floorplan/' - return f'{path}_{filename}' + return f'{path}{filename}' diff --git a/netbox_floorplan/version.py b/netbox_floorplan/version.py index 3d18726..3d26edf 100644 --- a/netbox_floorplan/version.py +++ b/netbox_floorplan/version.py @@ -1 +1 @@ -__version__ = "0.5.0" +__version__ = "0.4.1" diff --git a/setup.py b/setup.py index 7ad2da5..d776723 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,6 @@ def get_version(rel_path): packages=find_packages(), include_package_data=True, zip_safe=False, - min_version="4.1.0", - max_version="4.1.99" + min_version="4.0.0", + max_version="4.0.99" )