2022-11-17 23:09:04 -08:00
|
|
|
from django.utils.decorators import method_decorator
|
2022-12-20 00:51:53 -08:00
|
|
|
from django.views.generic import RedirectView
|
2022-11-17 23:09:04 -08:00
|
|
|
|
|
|
|
from users.decorators import admin_required
|
2023-01-13 14:54:21 -08:00
|
|
|
from users.views.admin.announcements import ( # noqa
|
|
|
|
AnnouncementCreate,
|
|
|
|
AnnouncementDelete,
|
|
|
|
AnnouncementEdit,
|
|
|
|
AnnouncementPublish,
|
|
|
|
AnnouncementsRoot,
|
|
|
|
AnnouncementUnpublish,
|
|
|
|
)
|
2022-11-17 23:09:04 -08:00
|
|
|
from users.views.admin.domains import ( # noqa
|
|
|
|
DomainCreate,
|
|
|
|
DomainDelete,
|
|
|
|
DomainEdit,
|
|
|
|
Domains,
|
|
|
|
)
|
2023-01-10 19:31:50 -08:00
|
|
|
from users.views.admin.emoji import ( # noqa
|
2023-01-14 09:35:20 -08:00
|
|
|
EmojiCopyLocal,
|
2023-01-10 19:31:50 -08:00
|
|
|
EmojiCreate,
|
|
|
|
EmojiDelete,
|
|
|
|
EmojiEnable,
|
|
|
|
EmojiRoot,
|
|
|
|
)
|
2023-07-24 16:59:50 -07:00
|
|
|
from users.views.admin.federation import ( # noqa
|
|
|
|
FederationBlocklist,
|
|
|
|
FederationEdit,
|
|
|
|
FederationRoot,
|
|
|
|
)
|
2023-01-10 19:31:50 -08:00
|
|
|
from users.views.admin.hashtags import HashtagEdit, HashtagEnable, Hashtags # noqa
|
2022-12-16 18:42:48 -08:00
|
|
|
from users.views.admin.identities import IdentitiesRoot, IdentityEdit # noqa
|
2022-12-20 00:51:53 -08:00
|
|
|
from users.views.admin.invites import InviteCreate, InvitesRoot, InviteView # noqa
|
2022-12-17 13:45:31 -08:00
|
|
|
from users.views.admin.reports import ReportsRoot, ReportView # noqa
|
2022-12-05 18:21:00 -08:00
|
|
|
from users.views.admin.settings import ( # noqa
|
|
|
|
BasicSettings,
|
|
|
|
PoliciesSettings,
|
|
|
|
TuningSettings,
|
|
|
|
)
|
2022-12-15 11:26:17 -08:00
|
|
|
from users.views.admin.stator import Stator # noqa
|
2022-12-16 15:38:52 -08:00
|
|
|
from users.views.admin.users import UserEdit, UsersRoot # noqa
|
2022-11-17 23:09:04 -08:00
|
|
|
|
|
|
|
|
|
|
|
@method_decorator(admin_required, name="dispatch")
|
|
|
|
class AdminRoot(RedirectView):
|
|
|
|
pattern_name = "admin_basic"
|