ListView
This module contains views to implement the React.
AuthToken list view in the Smarter Dashboard.
- class smarter.lib.drf.views.listview.view.AuthTokenListView(**kwargs)[source]
Bases:
SmarterAuthenticatedNeverCachedWebViewRender the authtoken list view for the Smarter Workbench web console.
This view displays all authtokens available to the authenticated user as cards, providing a quick overview and access to authtoken details.
- Parameters:
- Returns:
Rendered HTML page with a card for each authtoken, or a 404 error page if the user is not authenticated.
- Return type:
HttpResponse
- authtokens: list[SmarterAuthToken]
- property formatted_class_name: str
Returns a formatted string of the class name for logging purposes.