takahe/users/views/settings/__init__.py

13 lines
478 B
Python
Raw Normal View History

from django.utils.decorators import method_decorator
2022-11-25 18:33:46 -08:00
from django.views.generic import RedirectView
from users.decorators import identity_required
2022-11-25 18:33:46 -08:00
from users.views.settings.interface import InterfacePage, SettingsPage # noqa
2022-11-19 12:38:25 -08:00
from users.views.settings.profile import ProfilePage # noqa
2022-11-25 18:33:46 -08:00
from users.views.settings.security import SecurityPage # noqa
@method_decorator(identity_required, name="dispatch")
class SettingsRoot(RedirectView):
pattern_name = "settings_profile"