Hi,
this post helped me a lot overriding the EditView for a ModelAdmin on wagtail.
My problem is I want to trigger actions the moment the user clicks 'edit' item from the IndexView, not at the time of form_validation, and I can't manage to find the method to override
Ok found I can override dispatch method for actions after Edit button is clicked from an item on the ModelAdmin IndexView.
Also can override form_valid method also inside the wagtail_hook class for my model, for actions with the changed fields on the EditView form, I needed to sync this info back to another corporate service API
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi,
this post helped me a lot overriding the EditView for a ModelAdmin on wagtail.
My problem is I want to trigger actions the moment the user clicks 'edit' item from the IndexView, not at the time of form_validation, and I can't manage to find the method to override
Ok found I can override dispatch method for actions after Edit button is clicked from an item on the ModelAdmin IndexView.
Also can override form_valid method also inside the wagtail_hook class for my model, for actions with the changed fields on the EditView form, I needed to sync this info back to another corporate service API