summaryrefslogtreecommitdiffstats
path: root/users/views/settings/__init__.py
blob: f7f401859d3280060a868bf410fb622750441bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.utils.decorators import method_decorator
from django.views.generic import RedirectView

from users.decorators import identity_required
from users.views.settings.interface import InterfacePage, SettingsPage  # noqa
from users.views.settings.profile import ProfilePage  # noqa
from users.views.settings.security import SecurityPage  # noqa


@method_decorator(identity_required, name="dispatch")
class SettingsRoot(RedirectView):
    pattern_name = "settings_profile"