fix user groups form

This commit is contained in:
imperosol
2024-12-20 11:00:57 +01:00
parent 38ceaf3106
commit 9f3a10ca71
2 changed files with 6 additions and 5 deletions

View File

@ -67,8 +67,8 @@ from core.views.forms import (
LoginForm,
RegisteringForm,
UserGodfathersForm,
UserGroupsForm,
UserProfileForm,
UserRealGroupForm,
)
from counter.models import Refilling, Selling
from counter.views.student_card import StudentCardFormView
@ -583,7 +583,7 @@ class UserUpdateGroupView(UserTabsMixin, CanEditPropMixin, UpdateView):
model = User
pk_url_kwarg = "user_id"
template_name = "core/user_group.jinja"
form_class = UserRealGroupForm
form_class = UserGroupsForm
context_object_name = "profile"
current_tab = "groups"