Base code for custom Django admin action.