[widgets] Add first run at widgets
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user