diff --git a/netbox/core/choices.py b/netbox/core/choices.py index 3bd174064..ee0febaff 100644 --- a/netbox/core/choices.py +++ b/netbox/core/choices.py @@ -81,29 +81,3 @@ class ObjectChangeActionChoices(ChoiceSet): (ACTION_UPDATE, _('Updated'), 'blue'), (ACTION_DELETE, _('Deleted'), 'red'), ) - - -class PluginSortChoices(ChoiceSet): - - SORT_NAME_AZ = 'az' - SORT_NAME_ZA = 'za' - SORT_UPDATED = 'updated' - SORT_PUBLISHED = 'published' - - CHOICES = ( - (SORT_NAME_AZ, _('By Name (A-Z)'), 'az'), - (SORT_NAME_ZA, _('By Name (Z-A)'), 'za'), - (SORT_UPDATED, _('By updated date'), 'updated'), - (SORT_PUBLISHED, _('By published date'), 'published'), - ) - - -class PluginStatusChoices(ChoiceSet): - - STATUS_ALL = 'all' - STATUS_INSTALLED = 'installed' - - CHOICES = ( - (STATUS_ALL, _('All'), 'all'), - (STATUS_INSTALLED, _('Installed'), 'installed'), - ) diff --git a/netbox/core/views.py b/netbox/core/views.py index 5eeb6e775..24a2c47e2 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -39,7 +39,6 @@ from utilities.htmx import htmx_partial from utilities.query import count_related from utilities.views import ContentTypePermissionRequiredMixin, GetRelatedModelsMixin, register_model_view from . import filtersets, forms, tables -from .choices import PluginSortChoices, PluginStatusChoices from .models import * from .tables import CertifiedPluginTable, PluginVersionTable