From 37072e16405e544367d84c24c30d4f49df18997c Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 26 Sep 2016 11:16:14 +0200 Subject: [PATCH] Clean up some useless prints --- accounting/views.py | 1 - core/views/user.py | 1 - 2 files changed, 2 deletions(-) diff --git a/accounting/views.py b/accounting/views.py index f4b943fd..5f9d3f31 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -221,7 +221,6 @@ class OperationForm(forms.ModelForm): def clean(self): self.cleaned_data = super(OperationForm, self).clean() - print(self.errors) if self.cleaned_data['target_type'] == "USER": self.cleaned_data['target_id'] = self.cleaned_data['user'].id elif self.cleaned_data['target_type'] == "ACCOUNT": diff --git a/core/views/user.py b/core/views/user.py index f5eca7b3..c46bb676 100644 --- a/core/views/user.py +++ b/core/views/user.py @@ -273,7 +273,6 @@ class UserUploadProfilePictView(CanEditMixin, DetailView): self.object = self.get_object() if self.object.profile_pict: raise ValidationError(_("User already has a profile picture")) - print(request.FILES['new_profile_pict']) f = request.FILES['new_profile_pict'] parent = SithFile.objects.filter(parent=None, name="profiles").first() name = str(self.object.id) + "_profile.jpg" # Webcamejs uploads JPGs