This repository has been archived by the owner on May 5, 2021. It is now read-only.
v1.3.0: Minor release. Hook model change + new classes.
- Merged #28
- Removal of choices argument for event attribute in Hook model. Change eliminates creation of migration files when modifying the
HOOK_EVENTS
dictionary. BE ADVISED: This change can result in undesirable behavior when upgrading from v1.2.2. or older Given that knowledge, this release was bumped up to a minor release.
- Removal of choices argument for event attribute in Hook model. Change eliminates creation of migration files when modifying the
- Creation of HookAdmin class for the Hook model.
- Creation of HookForm class.
- Form class is used in HookAdmin.
- Addition of clean method to Hook model.
- Method validates event value is within the available choices in the
HOOK_EVENTS
dictionary.
- Method validates event value is within the available choices in the
Notes:
- Consider using HookForm.ADMIN_EVENTS to assign available
HOOK_EVENTS
dynamically.