Skip to content

Commit

Permalink
Close #31: Use tornado-debugger on admin handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
bhch committed Oct 22, 2022
1 parent 764db85 commit 4f44789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ install_requires =
tornado >= 5.1
WTForms >= 2.3.0, < 3
multidict >= 5.2.0
tornado-debugger >= 0.9.1
packages = find:
include_package_data = true
zip_safe = false
3 changes: 2 additions & 1 deletion tornadmin/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from tornadmin.utils.text import replace_qs, pluralize, get_display_name
from tornadmin.utils.escape import conditional_xhtml_escape, mark_safe
from tornadmin.flash import FlashMixin
from tornado_debugger import DebuggerMixin


BASE_DIR = os.path.dirname(__file__)
Expand All @@ -21,7 +22,7 @@ def __bool__(self):
return False


class BaseHandler(FlashMixin, web.RequestHandler):
class BaseHandler(DebuggerMixin, FlashMixin, web.RequestHandler):
admin_site = None

async def prepare(self):
Expand Down

0 comments on commit 4f44789

Please sign in to comment.