extensions-website/users/views/settings.py

19 lines
527 B
Python

"""User profile pages."""
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
User = get_user_model()
class ProfileView(LoginRequiredMixin, TemplateView):
"""Template view for the profile settings."""
template_name = 'users/settings/profile.html'
class DeleteView(LoginRequiredMixin, TemplateView):
"""Template view where account deletion can be requested."""
template_name = 'users/settings/delete.html'