diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 7fe4f3e..e505f2d 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -11,7 +11,7 @@ body:
attributes:
label: cookiecutter-netbox-plugin version
description: What version of cookiecutter-netbox-plugin are you currently running?
- placeholder: v0.1.0
+ placeholder: v0.2.0
validations:
required: true
- type: dropdown
@@ -19,10 +19,9 @@ body:
label: Python version
description: What version of Python are you currently running?
options:
- - "3.8"
- - "3.9"
- "3.10"
- "3.11"
+ - "3.12"
validations:
required: true
- type: textarea
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml
index bb6ec1a..f666a61 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.yaml
+++ b/.github/ISSUE_TEMPLATE/feature_request.yaml
@@ -14,7 +14,7 @@ body:
attributes:
label: cookiecutter-netbox-plugin version
description: What version of cookiecutter-netbox-plugin are you currently running?
- placeholder: v0.1.0
+ placeholder: v0.2.0
validations:
required: true
- type: dropdown
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 94d5951..c994435 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## 0.2.0 (2024-05-06)
+
+* Updates to target NetBox 4.0.
+
## 0.1.0 (2023-02-06)
* First release on PyPI.
diff --git a/README.md b/README.md
index 60c1819..495dddc 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,8 @@ conform to best practice.
* Documentation:
+**Note:** Plugins from this version target NetBox 4.0+
+
## Features
This tool will create Python project with the following features:
diff --git a/docs/history.md b/docs/history.md
index 7baf07f..f316e19 100644
--- a/docs/history.md
+++ b/docs/history.md
@@ -1,5 +1,9 @@
# History
+## v0.2.0
+
+* Updates to target NetBox 4.0
+
## v0.1.0
***first (Beta) release with the following features:***
diff --git a/pyproject.toml b/pyproject.toml
index fb3da7d..2d2c4f4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "cookiecutter-netbox-plugin"
-version = "0.1.0"
+version = "0.2.0"
authors = [
{name = "Arthur Hanson", email = "ahanson@netboxlabs.com"},
]
@@ -19,13 +19,12 @@ classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 3 :: Only",
- 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
-requires-python = ">=3.8"
+requires-python = ">=3.10.0"
[project.optional-dependencies]
test = [
diff --git a/{{cookiecutter.hyphenated}}/README.md b/{{cookiecutter.hyphenated}}/README.md
index d4af01c..6d0d2c7 100644
--- a/{{cookiecutter.hyphenated}}/README.md
+++ b/{{cookiecutter.hyphenated}}/README.md
@@ -16,7 +16,7 @@ The features the plugin provides should be listed here.
| NetBox Version | Plugin Version |
|----------------|----------------|
-| 3.7 | 0.1.0 |
+| 4.0 | 0.1.0 |
## Installing
diff --git a/{{cookiecutter.hyphenated}}/pyproject.toml b/{{cookiecutter.hyphenated}}/pyproject.toml
index d781614..b8c8ecf 100644
--- a/{{cookiecutter.hyphenated}}/pyproject.toml
+++ b/{{cookiecutter.hyphenated}}/pyproject.toml
@@ -30,13 +30,12 @@ classifiers=[
{%- endif %}
'Natural Language :: English',
"Programming Language :: Python :: 3 :: Only",
- 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
-requires-python = ">=3.8.1"
+requires-python = ">=3.10.0"
[project.optional-dependencies]
test = [
diff --git a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/__init__.py b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/__init__.py
index 77cb20f..0b28614 100644
--- a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/__init__.py
+++ b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/__init__.py
@@ -5,7 +5,7 @@
__version__ = "{{ cookiecutter.version }}"
-from extras.plugins import PluginConfig
+from netbox.plugins import PluginConfig
class {{ cookiecutter.__model_name }}Config(PluginConfig):
diff --git a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/navigation.py b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/navigation.py
index eb12024..a9f3f9d 100644
--- a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/navigation.py
+++ b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/navigation.py
@@ -6,7 +6,6 @@
link="plugins:{{ cookiecutter.underscored }}:{{ cookiecutter.__model_url_name }}_add",
title="Add",
icon_class="mdi mdi-plus-thick",
- color=ButtonColorChoices.GREEN,
)
]
diff --git a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/templates/{{cookiecutter.underscored}}/{{cookiecutter.__model_url}}.html b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/templates/{{cookiecutter.underscored}}/{{cookiecutter.__model_url}}.html
index 3a0b519..444d03b 100644
--- a/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/templates/{{cookiecutter.underscored}}/{{cookiecutter.__model_url}}.html
+++ b/{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/templates/{{cookiecutter.underscored}}/{{cookiecutter.__model_url}}.html
@@ -9,14 +9,12 @@
{% endraw %}
{% raw %}
-
-
-
- Name |
- {{ object.name }} |
-
-
-
+
+
+ Name |
+ {{ object.name }} |
+
+
{% include 'inc/panels/custom_fields.html' %}