-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move account related settings into adapter
This was a change in ACM v0.26.
- Loading branch information
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -388,12 +388,6 @@ | |
ANVIL_ACCOUNT_ADAPTER = "gregor_django.gregor_anvil.adapters.AccountAdapter" | ||
ANVIL_MANAGED_GROUP_ADAPTER = "gregor_django.gregor_anvil.adapters.ManagedGroupAdapter" | ||
|
||
# Specify the URL name that AccountLink and AccountLinkVerify redirect to. | ||
ANVIL_ACCOUNT_LINK_REDIRECT = "users:redirect" | ||
# Specify the subject for AnVIL account verification emails. | ||
ANVIL_ACCOUNT_LINK_EMAIL_SUBJECT = "Verify your AnVIL account email" | ||
ANVIL_ACCOUNT_VERIFY_NOTIFICATION_EMAIL = "[email protected]" | ||
|
||
DRUPAL_API_CLIENT_ID = env("DRUPAL_API_CLIENT_ID", default="") | ||
DRUPAL_API_CLIENT_SECRET = env("DRUPAL_API_CLIENT_SECRET", default="") | ||
DRUPAL_API_REL_PATH = env("DRUPAL_API_REL_PATH", default="mockapi") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,9 @@ class AccountAdapter(BaseAccountAdapter): | |
|
||
list_table_class = tables.AccountTable | ||
list_filterset_class = filters.AccountListFilter | ||
# account_link_verify_redirect = "users:redirect" | ||
# account_link_email_subject = "Verify your AnVIL account email" | ||
# account_verify_notification_email = "[email protected]" | ||
|
||
def get_autocomplete_queryset(self, queryset, q): | ||
"""Filter to Accounts where the email or the associated user name matches the query `q`.""" | ||
|