def delete_queryset(self, request, queryset):
        if not self.has_delete_permission(request):
            raise PermissionDenied
        else:
            if queryset.count() == 1:
                msg = "1 hit was"
            else:
                msg = "%s hits were" % queryset.count()

            for obj in queryset.iterator():
                obj.delete()  # calling it this way to get custom delete() method

            self.message_user(request, msg % "%s successfully deleted.")
dataset/ETHPy150Open thornomad/django-hitcount/hitcount/admin.py/HitAdmin.delete_queryset/swapped operands of `%`