def save(self): user = CUser.get_user(email=self.cleaned_data['user_email']) user.set_first_name(self.cleaned_data['first_name']) user.set_last_name(self.cleaned_data['last_name']) user.set_password(self.cleaned_data['password']) user.save() return user
def delete_user(self): email = self.cleaned_data['email'] CUser.get_user(user__username=self.cleaned_data['email']).delete()
def delete_user(self): email = self.cleaned_data['email'] print("emails match") CUser.get_user(user__username=self.cleaned_data['email']).delete()