The Managed Group adapter

The app provides an adapter that you can use to customize behavior for Managed Groups. You can override this setting by specifying the ANVIL_MANAGED_GROUP_ADAPTER setting in your settings.py file. By default, the app uses DefaultManagedGroupAdapter, e.g.,:

ANVIL_MANAGED_GROUP_ADAPTER = "anvil_consortium_manager.adapters.default.DefaultManagedGroupAdapter"

To customize app behavior for accounts, you must subclass BaseManagedGroupAdapter and set the following attributes:

Optionally, you can override the following methods:

  • after_anvil_create(self, managed_group): a method to perform any actions after creating the Managed Group on AnVIL via the ManagedGroupCreate view.