Skip to content

Commit 7ce718f

Browse files
wkootmikedekker
andauthored
Fix filters with default order by ID (#78)
Closes #75 Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com> Co-authored-by: mikedekker <mike@dekker.me>
1 parent 9e87afc commit 7ce718f

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,23 @@
22

33
## [Unreleased]
44

5+
## [1.8.3](https://github.com/ICTU/netbox_slm/releases/tag/1.8.3) - 2025-12-18
6+
7+
### Fixed
8+
9+
* Filters with default order by ID (#75)
10+
511
## [1.8.2](https://github.com/ICTU/netbox_slm/releases/tag/1.8.2) - 2025-06-02
612

713
### Fixed
814

9-
* Permission check for adding software product installations (#70)
15+
* Permission check for adding software product installations (#70)
1016

1117
## [1.8.1](https://github.com/ICTU/netbox_slm/releases/tag/1.8.1) - 2025-04-11
1218

1319
### Fixed
1420

15-
* Filtering on foreign objects (#65)
21+
* Filtering on foreign objects (#65)
1622

1723
## [1.8.0](https://github.com/ICTU/netbox_slm/releases/tag/1.8.0) - 2025-02-25
1824

netbox_slm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from netbox.plugins import PluginConfig
1818

19-
__version__ = "1.8.2"
19+
__version__ = "1.8.3"
2020

2121

2222
class SLMConfig(PluginConfig):

netbox_slm/api/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ def get_view_name(self):
2727

2828

2929
class SoftwareProductViewSet(NetBoxModelViewSet):
30-
queryset = SoftwareProduct.objects.all()
30+
queryset = SoftwareProduct.objects.all().order_by("id")
3131
serializer_class = SoftwareProductSerializer
3232
filterset_class = SoftwareProductFilterSet
3333

3434

3535
class SoftwareProductVersionViewSet(NetBoxModelViewSet):
36-
queryset = SoftwareProductVersion.objects.all()
36+
queryset = SoftwareProductVersion.objects.all().order_by("id")
3737
serializer_class = SoftwareProductVersionSerializer
3838
filterset_class = SoftwareProductVersionFilterSet
3939

4040

4141
class SoftwareProductInstallationViewSet(NetBoxModelViewSet):
42-
queryset = SoftwareProductInstallation.objects.all()
42+
queryset = SoftwareProductInstallation.objects.all().order_by("id")
4343
serializer_class = SoftwareProductInstallationSerializer
4444
filterset_class = SoftwareProductInstallationFilterSet
4545

4646

4747
class SoftwareLicenseViewSet(NetBoxModelViewSet):
48-
queryset = SoftwareLicense.objects.all()
48+
queryset = SoftwareLicense.objects.all().order_by("id")
4949
serializer_class = SoftwareLicenseSerializer
5050
filterset_class = SoftwareLicenseFilterSet

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sonar.organization=ictu
33
sonar.projectKey=ICTU_netbox_slm
44
sonar.projectName=netbox-slm
5-
sonar.projectVersion=1.8.2
5+
sonar.projectVersion=1.8.3
66

77
# Path is relative to the sonar-project.properties file
88
sonar.sources=netbox_slm

0 commit comments

Comments
 (0)