Skip to content

Commit 7c97a98

Browse files
committed
Panel.enabled is a property since 71a2c12.
1 parent 80ac168 commit 7c97a98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

debug_toolbar/panels/redirects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class InterceptRedirectsPanel(DebugPanel):
1616

1717
has_content = False
1818

19+
@property
1920
def enabled(self):
2021
default = 'on' if self.toolbar.config['INTERCEPT_REDIRECTS'] else 'off'
2122
return self.toolbar.request.COOKIES.get('djdt' + self.panel_id, default) == 'on'

0 commit comments

Comments
 (0)