[widgets] Add first run at widgets
All checks were successful
build & deploy / test (push) Successful in 2m36s
build & deploy / deploy (push) Successful in 29s

This commit is contained in:
2026-03-20 13:11:25 -04:00
parent 7a74f7f882
commit 64ec3c1cca
10 changed files with 600 additions and 119 deletions

View File

@ -1,3 +1,4 @@
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.http.response import HttpResponseBadRequest
from django.views.generic import FormView
@ -5,7 +6,7 @@ from django.views.generic import FormView
from profiles.forms import UserProfileForm
class ProfileFormView(FormView):
class ProfileFormView(LoginRequiredMixin, FormView):
form_class = UserProfileForm
template_name = "profiles/settings_form.html"
success_url = reverse_lazy("profiles:profile_settings")