2022-11-18 07:09:04 +00:00
|
|
|
from django.utils.decorators import method_decorator
|
2022-12-20 08:51:53 +00:00
|
|
|
from django.views.generic import RedirectView
|
2022-11-18 07:09:04 +00:00
|
|
|
|
|
|
|
from users.decorators import admin_required
|
|
|
|
from users.views.admin.domains import ( # noqa
|
|
|
|
DomainCreate,
|
|
|
|
DomainDelete,
|
|
|
|
DomainEdit,
|
|
|
|
Domains,
|
|
|
|
)
|
2022-11-26 00:52:43 +00:00
|
|
|
from users.views.admin.federation import FederationEdit, FederationRoot # noqa
|
2022-12-20 09:16:03 +00:00
|
|
|
from users.views.admin.hashtags import HashtagEdit, Hashtags # noqa
|
2022-12-17 02:42:48 +00:00
|
|
|
from users.views.admin.identities import IdentitiesRoot, IdentityEdit # noqa
|
2022-12-20 08:51:53 +00:00
|
|
|
from users.views.admin.invites import InviteCreate, InvitesRoot, InviteView # noqa
|
2022-12-17 21:45:31 +00:00
|
|
|
from users.views.admin.reports import ReportsRoot, ReportView # noqa
|
2022-12-06 02:21:00 +00:00
|
|
|
from users.views.admin.settings import ( # noqa
|
|
|
|
BasicSettings,
|
|
|
|
PoliciesSettings,
|
|
|
|
TuningSettings,
|
|
|
|
)
|
2022-12-15 19:26:17 +00:00
|
|
|
from users.views.admin.stator import Stator # noqa
|
2022-12-16 23:38:52 +00:00
|
|
|
from users.views.admin.users import UserEdit, UsersRoot # noqa
|
2022-11-18 07:09:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
@method_decorator(admin_required, name="dispatch")
|
|
|
|
class AdminRoot(RedirectView):
|
|
|
|
pattern_name = "admin_basic"
|