소스 검색

Fixes #15652: Fix the display of error messages after attempting to delete an object

Jeremy Stretch 2 년 전
부모
커밋
4e4c277711
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      netbox/utilities/htmx.py

+ 1 - 3
netbox/utilities/htmx.py

@@ -2,12 +2,10 @@ __all__ = (
     'htmx_partial',
     'htmx_partial',
 )
 )
 
 
-PAGE_CONTAINER_ID = 'page-content'
-
 
 
 def htmx_partial(request):
 def htmx_partial(request):
     """
     """
     Determines whether to render partial (versus complete) HTML content
     Determines whether to render partial (versus complete) HTML content
     in response to an HTMX request, based on the target element.
     in response to an HTMX request, based on the target element.
     """
     """
-    return request.htmx and request.htmx.target and request.htmx.target != PAGE_CONTAINER_ID
+    return request.htmx and not request.htmx.boosted