Skip to content

Commit 5b37bb0

Browse files
committed
Merge branch 'fix_save_m2m' into 'master'
fix: Add save_m2m() call to SegmentForm to properly save tags See merge request 701/netbox/cesnet_service_path_plugin!27
2 parents 47dced9 + 573902b commit 5b37bb0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cesnet_service_path_plugin/forms/segment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def save(self, commit=True):
157157

158158
if commit:
159159
instance.save()
160+
self.save_m2m() # This is required to save many-to-many fields like tags
160161

161162
return instance
162163

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cesnet_service_path_plugin"
7-
version = "5.0.2"
7+
version = "5.0.3"
88
description = "Adds ability to create, edit and view service paths in the CESNET network."
99
authors = [
1010
{name = "Jan Krupa", email = "[email protected]"},
@@ -46,4 +46,4 @@ include = ["cesnet_service_path_plugin*"]
4646

4747
[tool.setuptools.package-data]
4848
# This replaces include_package_data=True
49-
"*" = ["*"]
49+
"*" = ["*"]

0 commit comments

Comments
 (0)