mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
14731 cleanup
This commit is contained in:
parent
949551845f
commit
83a0d5d17b
@ -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'),
|
||||
)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user