diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py index 5914583..d771f00 100644 --- a/django_lostplaces/lostplaces/models/models.py +++ b/django_lostplaces/lostplaces/models/models.py @@ -95,7 +95,6 @@ def auto_delete_file_on_change(sender, instance, **kwargs): old_file = Explorer.objects.get(pk=instance.pk).profile_image except Explorer.DoesNotExist: return False - print("Deleting:", old_file) new_file = instance.profile_image if not old_file == new_file: old_file.delete(save=False) diff --git a/django_lostplaces/lostplaces/views/explorer_views.py b/django_lostplaces/lostplaces/views/explorer_views.py index 62033e1..f35b9ee 100644 --- a/django_lostplaces/lostplaces/views/explorer_views.py +++ b/django_lostplaces/lostplaces/views/explorer_views.py @@ -56,7 +56,6 @@ class ExplorerProfileUpdateView(IsAuthenticatedMixin, View): return render(request, 'explorer/profile_update.html', context) def post(self, request, *args, **kwargs): - print(request.POST) explorer_user_change_form = ExplorerUserChangeForm( request.POST, instance=request.user @@ -71,8 +70,6 @@ class ExplorerProfileUpdateView(IsAuthenticatedMixin, View): explorer_user_change_form.save() explorer_change_form.save() - print(explorer_change_form.cleaned_data) - messages.success( self.request, _('Successfully updated Explorer profile')