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: SmarterSuperUserOnlyModelAdmin

The installed extensions, read-only, each linked to its page in the web console.

actions = None
badge(obj)[source]
Return type:

str

change_form_template = 'admin/llmtool/extension/change_form.html'
change_list_template = 'admin/llmtool/extension/change_list.html'
change_view(request, object_id, form_url='', extra_context=None)[source]
changelist_view(request, extra_context=None)[source]

The ‘change list’ admin view for this model.

documentation(obj)[source]
Return type:

str

has_add_permission(request, obj=None)[source]

Override the default add permission logic to restrict access to superusers only.

Return type:

bool

has_change_permission(request, obj=None)[source]

Override the default change permission logic to restrict access to superusers only.

Return type:

bool

has_delete_permission(request, obj=None)[source]

Override the default delete permission logic to restrict access to superusers only.

Return type:

bool

has_error(obj)[source]
Return type:

bool

inlines = (<class 'smarter.apps.llmtool.extension.admin.ExtensionVersionInline'>, <class 'smarter.apps.llmtool.extension.admin.ExtensionResourceInline'>)
installed(obj)[source]
Return type:

str

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'>)
manage(obj)[source]
Return type:

str

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')
update(obj)[source]
Return type:

str