Skip to content

Commit 808db8c

Browse files
committed
Note why ordering is not applied in TaggedItem.Meta
1 parent 7fa81f1 commit 808db8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netbox/extras/models/tags.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,6 @@ class Meta:
8383
indexes = [models.Index(fields=["content_type", "object_id"])]
8484
verbose_name = _('tagged item')
8585
verbose_name_plural = _('tagged items')
86+
# Note: while there is no ordering applied here (because it would basically be done on fields
87+
# of the related `tag`), there is an ordering applied to extras.api.views.TaggedItemViewSet
88+
# to allow for proper pagination.

0 commit comments

Comments
 (0)