anvil_consortium_manager.adapters.account module

Contains base adapter for accounts.

class anvil_consortium_manager.adapters.account.BaseAccountAdapter(*args, **kwargs)

Bases: ABC

Base class to inherit when customizing the account adapter.

path to account verification email template

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_notification_email = None

Template to use for the account verification notification email.

account_verification_notification_template = 'anvil_consortium_manager/account_notification_email.html'
after_account_verification(account)

Custom actions to take for an account after it has been verified by a user.

get_account_verification_notification_context(account)

Return the context for the account link verify notification email.

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.

send_account_verification_notification_email(account)

Send an email to the account_verification_notification_email address after an account is linked.

anvil_consortium_manager.adapters.account.get_account_adapter()