Skip to content

Commit b9fe5fa

Browse files
authored
Merge pull request #93 from netbox-community/issue-92
Issue 92
2 parents 70b4bd4 + 74bb894 commit b9fe5fa

5 files changed

Lines changed: 25 additions & 4 deletions

File tree

netbox_floorplan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FloorplanConfig(PluginConfig):
99
description = ""
1010
version = __version__
1111
base_url = "floorplan"
12-
min_version = "4.5.0-beta1"
12+
min_version = "4.5.0"
1313
max_version = "4.5.99"
1414

1515

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.12 on 2026-03-25 01:00
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('netbox_floorplan', '0012_alter_floorplan_options_and_more'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='floorplan',
15+
name='canvas',
16+
field=models.JSONField(blank=True, default=dict),
17+
),
18+
]

netbox_floorplan/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ class Floorplan(NetBoxModel):
136136
default='m'
137137
)
138138

139-
canvas = models.JSONField(default=dict)
139+
canvas = models.JSONField(
140+
default=dict,
141+
blank=True
142+
)
140143

141144
class Meta:
142145
ordering = ('site', 'location', 'assigned_image',

netbox_floorplan/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.9.0"
1+
__version__ = "0.9.1"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ def get_version(rel_path):
3737
packages=find_packages(),
3838
include_package_data=True,
3939
zip_safe=False,
40-
min_version="4.5.0-beta1",
40+
min_version="4.5.0",
4141
max_version="4.5.99"
4242
)

0 commit comments

Comments
 (0)