diff --git a/CHANGELOG b/CHANGELOG index 66a06dc0..af129af3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +- On ne peut plus modifier des comptes COF depuis l'interface K-Fêt - Le champ de paiement BdA se fait au niveau des attributions - On peut supprimer des comptes et des articles K-Fêt - Passage à Django2 diff --git a/kfet/forms.py b/kfet/forms.py index e314d80c..b8d670c1 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -119,11 +119,6 @@ class CofForm(forms.ModelForm): fields = ["login_clipper", "is_cof", "departement"] -class CofRestrictForm(CofForm): - class Meta(CofForm.Meta): - fields = ["departement"] - - class UserForm(forms.ModelForm): class Meta: model = User @@ -136,9 +131,12 @@ class UserRestrictForm(UserForm): fields = ["first_name", "last_name"] -class UserRestrictTeamForm(UserForm): +class UserInfoForm(UserForm): + first_name = forms.CharField(label="Prénom", disabled=True) + last_name = forms.CharField(label="Nom de famille", disabled=True) + class Meta(UserForm.Meta): - fields = ["first_name", "last_name", "email"] + fields = ["first_name", "last_name"] class AccountNegativeForm(forms.ModelForm): diff --git a/kfet/templates/kfet/account_update.html b/kfet/templates/kfet/account_update.html index 2fa1cec2..36b3d75d 100644 --- a/kfet/templates/kfet/account_update.html +++ b/kfet/templates/kfet/account_update.html @@ -30,8 +30,7 @@