anvil_consortium_manager.adapters.account module

Contains base adapter for accounts.

class anvil_consortium_manager.adapters.account.BaseAccountAdapter

Bases: ABC

Base class to inherit when customizing the account adapter.

If desired, specify the email address to send an email to after a user verifies an account.

Subject line for AnVIL account verification emails.

The URL for AccountLinkVerify view redirect

account_verification_email_template = 'anvil_consortium_manager/account_verification_email.html'
account_verify_notification_email = None

path to account verification email template

Custom actions to take for a user after their account is verified.

get_autocomplete_label(account)

Adapter to provide a label for an account in autocomplete views.

get_autocomplete_queryset(queryset, q)

Filter the Account queryset using the query q for use in the autocomplete.

get_list_filterset_class()

Return the FilterSet subclass to use for Account filtering in the AccountList view.

get_list_table_class()

Return the table class to use for the AccountList view.

abstract property list_filterset_class

FilterSet subclass to use for Account filtering in the AccountList view.

abstract property list_table_class

Table class to use in a list of Accounts.

anvil_consortium_manager.adapters.account.get_account_adapter()