takahe/users/views/admin/__init__.py

33 lines
1.0 KiB
Python
Raw Normal View History

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
from users.views.admin.domains import ( # noqa
DomainCreate,
DomainDelete,
DomainEdit,
Domains,
)
2022-11-25 16:52:43 -08:00
from users.views.admin.federation import FederationEdit, FederationRoot # noqa
2022-11-28 20:41:36 -08:00
from users.views.admin.hashtags import ( # noqa
HashtagCreate,
HashtagDelete,
HashtagEdit,
Hashtags,
)
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
from users.views.admin.settings import ( # noqa
BasicSettings,
PoliciesSettings,
TuningSettings,
)
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"