Admin Console
The Django admin console of Smarter Extensions: a read-only view, for superusers only.
Extensions are managed in the web console’s Extensions pages, at /extensions/
(views): browsing the registry, installing, uploading, configuring, enabling,
updating, rolling back and uninstalling. The admin lists the installed extensions, with
their versions, trust badges and resources, and links each one to its page in the console.
- class smarter.apps.llmtool.extension.admin.ExtensionAdmin(model, admin_site)[source]
Bases:
SmarterSuperUserOnlyModelAdminThe installed extensions, read-only, each linked to its page in the web console.
- actions = None
- change_form_template = 'admin/llmtool/extension/change_form.html'
- change_list_template = 'admin/llmtool/extension/change_list.html'
- has_add_permission(request, obj=None)[source]
Override the default add permission logic to restrict access to superusers only.
- Return type:
- has_change_permission(request, obj=None)[source]
Override the default change permission logic to restrict access to superusers only.
- Return type:
- has_delete_permission(request, obj=None)[source]
Override the default delete permission logic to restrict access to superusers only.
- Return type:
- inlines = (<class 'smarter.apps.llmtool.extension.admin.ExtensionVersionInline'>, <class 'smarter.apps.llmtool.extension.admin.ExtensionResourceInline'>)
- list_display = ('display_name', 'slug', 'installed', 'update', 'badge', 'enabled', 'source', 'has_error', 'manage')
- list_filter = ('enabled', 'trust_badge', 'source', <class 'smarter.apps.llmtool.extension.admin.UpdateAvailableFilter'>)
- property media
- readonly_fields = ('display_name', 'slug', 'description', 'publisher', 'badge', 'source', 'enabled', 'error', 'installed', 'latest_version', 'latest_checked_at', 'all_accounts', 'accounts', 'documentation')
- search_fields = ('slug', 'display_name', 'publisher', 'description')