anvil_consortium_manager.adapters.account module
Contains base adapter for accounts.
- class anvil_consortium_manager.adapters.account.BaseAccountAdapter
Bases:
ABCBase class to inherit when customizing the account adapter.
- account_link_email_subject = 'Verify your AnVIL account email'
If desired, specify the email address to send an email to after a user verifies an account.
- account_link_redirect = 'home'
Subject line for AnVIL account verification emails.
- account_link_verify_message = 'Thank you for linking your AnVIL account.'
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
- after_account_link_verify(user)
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()