diff --git a/core/lookups.py b/core/lookups.py index 5649f7c3..9b04d17b 100644 --- a/core/lookups.py +++ b/core/lookups.py @@ -59,7 +59,6 @@ class ProductsLookup(LookupChannel): model = Product def get_query(self, q, request): - print(request.__dict__) return (self.model.objects.filter(name__icontains=q) | self.model.objects.filter(code__icontains=q))[:50] def format_item_display(self, item): diff --git a/core/views/files.py b/core/views/files.py index cade3453..92e0f545 100644 --- a/core/views/files.py +++ b/core/views/files.py @@ -57,7 +57,6 @@ class AddFilesForm(forms.Form): try: new_file.clean() new_file.save() - print(f.__dict__) except Exception as e: self.add_error(None, _("Error uploading file %(file_name)s: %(msg)s") % {'file_name': f, 'msg': str(e.message)}) diff --git a/eboutic/views.py b/eboutic/views.py index 2893b8e8..905711c0 100644 --- a/eboutic/views.py +++ b/eboutic/views.py @@ -59,8 +59,8 @@ class EbouticMain(TemplateView): if request.user.is_in_group(g.name): self.basket.add_product(p) break - except Exception as e: - print(repr(e)) + except: + pass def del_product(self, request): """ Delete a product from the basket """ diff --git a/subscription/views.py b/subscription/views.py index 98a76565..d04911dd 100644 --- a/subscription/views.py +++ b/subscription/views.py @@ -42,7 +42,6 @@ class SubscriptionForm(forms.ModelForm): def clean(self): cleaned_data = super(SubscriptionForm, self).clean() - print(cleaned_data) if (cleaned_data.get("member") is None and "last_name" not in self.errors.as_data() and "first_name" not in self.errors.as_data()