mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-18 16:38:59 +00:00
Make StudentCardFormView fragment only
This commit is contained in:
1 parent
b81cf49d0a
commit
d4b9c3afb1
8 files changed
+233
-187
No files matched your search
@@ -70,7 +70,6 @@ from core.views.forms import (
|
||||
UserGodfathersForm,
|
||||
UserProfileForm,
|
||||
)
|
||||
from counter.forms import StudentCardForm
|
||||
from counter.models import Refilling, Selling
|
||||
from eboutic.models import Invoice
|
||||
from subscription.models import Subscription
|
||||
@@ -576,9 +575,6 @@ class UserPreferencesView(UserTabsMixin, CanEditMixin, UpdateView):
|
||||
hasattr(self.object, "trombi_user") and self.request.user.trombi_user.trombi
|
||||
):
|
||||
kwargs["trombi_form"] = UserTrombiForm()
|
||||
|
||||
if hasattr(self.object, "customer"):
|
||||
kwargs["student_card_form"] = StudentCardForm()
|
||||
return kwargs
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user