websauna.system.admin.admin module¶
Default admin root implementation.
-
class
websauna.system.admin.admin.
Admin
(request)[source]¶ Bases:
websauna.system.core.traversal.Resource
Admin interface main object.
Presents /admin part of the URL. Manages model admin registrations and discovery. Provides helper functions to map SQLAlchemy objects to their admin URLs.
Admin
declares two default menu systems which can be used to register application specific and third party add on entriesAdmin.get_quick_menu()
returns a vertical menu which is visible in the main site navigationAdmin.get_admin_menu()
returns a horizontal menu which is visible after entering the admin UI
This class is instiated for each request and does not have global state.
Setup admin main menu.
- Return type
- Return type
- Return type
Return Admin root menu.
- Return type