Update by natay on Thu Oct 25 10:29:14 EDT 2018 from Admins-MacBook-Air.local
@@ -90,7 +90,6 @@ class LogoutForm(forms.Form):
class EditProfile(forms.Form):
-
def __init__(self, user, *args, **kwargs):
self.user = user
@@ -128,7 +127,6 @@ class EditProfile(forms.Form):
if you receive anwers to questions that you've posted.""",
initial=self.user.profile.message_prefs)
-
def save(self, request):
email = self.cleaned_data['email']
@@ -139,6 +137,8 @@ class EditProfile(forms.Form):
email_verified = False
self.user.email = self.cleaned_data['email']
+
+
self.user.username = self.cleaned_data["username"]
self.user.save()
@@ -214,8 +214,3 @@ class UserModerate(forms.Form):
cleaned_data = super(UserModerate, self).clean()
if not self.source.profile.is_moderator:
forms.ValidationError("You need to be a moderator to perform that action")
\ No newline at end of file
-
-
-
-
-
