def delete_view(self, request, object_id, extra_context=None):
        delete_view_response = super(EnhancedModelAdminMixin, self).delete_view(request, object_id, extra_context)
        if (request.POST and request.REQUEST in '_popup' and
                isinstance(delete_view_response, HttpResponseRedirect)):
            return render_to_response(
                'admin_enhancer/dismiss-delete-related-popup.html', {'object_id': object_id}
            )
        else:
            return delete_view_response
dataset/ETHPy150Open charettes/django-admin-enhancer/admin_enhancer/admin.py/EnhancedModelAdminMixin.delete_view/swapped operands of `in`