14731 cleanup

This commit is contained in:
Arthur Hanson 2024-07-15 21:38:41 +07:00
parent 949551845f
commit 83a0d5d17b
2 changed files with 0 additions and 27 deletions

View File

@ -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'),
)

View File

@ -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