From 808db8c8e855de0d6a5b4c7676d8e7f98fd7da58 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Tue, 29 Jul 2025 11:35:28 -0500 Subject: [PATCH] Note why ordering is not applied in TaggedItem.Meta --- netbox/extras/models/tags.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netbox/extras/models/tags.py b/netbox/extras/models/tags.py index b40327265..7d52d9eb6 100644 --- a/netbox/extras/models/tags.py +++ b/netbox/extras/models/tags.py @@ -83,3 +83,6 @@ class TaggedItem(GenericTaggedItemBase): indexes = [models.Index(fields=["content_type", "object_id"])] verbose_name = _('tagged item') verbose_name_plural = _('tagged items') + # Note: while there is no ordering applied here (because it would basically be done on fields + # of the related `tag`), there is an ordering applied to extras.api.views.TaggedItemViewSet + # to allow for proper pagination.