remove print statements

This commit is contained in:
Stephan Telling 2017-07-15 10:04:13 +02:00
parent 9866149636
commit cf81dbe870
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B

View file

@ -24,8 +24,6 @@ class ProfileUpdate(LoginRequiredMixin, UpdateView):
return models.Profile.objects.get(user=self.request.user) return models.Profile.objects.get(user=self.request.user)
def form_valid(self, form, **kwargs): def form_valid(self, form, **kwargs):
print(form.cleaned_data['public_credit_name'])
print(form.instance.public_credit_name)
if 'public_credit_name' in form.changed_data and form.cleaned_data['public_credit_name']: if 'public_credit_name' in form.changed_data and form.cleaned_data['public_credit_name']:
# user changed the name (to something non blank) # user changed the name (to something non blank)
form.instance.public_credit_name_approved = False form.instance.public_credit_name_approved = False