I have an admin interface that has a blog post, with inline models which are previus versions of the post.

I'd like to add an action for each one of the previous version (A revert action, custom model method)

how should I go about doing that? its kinda similar to ModelAction actions keyword, but I want it to be inside the model view, not the list view and also its for each inline model, not for the parent model

would love some help.

to make it clearer

my previous_version class has a function named revert. all I want is that in my blog post's view in the admin panel by each previous version I'll have a link or button or something. and pressing it will call previous_version.revert.

Edit
Report