Use the value of a field inside an administration action

‘code’ is a field of my MyModel model. I don’t know what to call it in this admin action. ‘param_secret’ is another field in my template and it is a parameter of the ‘generatePdfAuth’ view. This view is used to generate a pdf document. It works fine when it receives a ‘param_secret’ parameter. I come back to the problem: How to correctly call ‘code’ or ‘param_secret’ inside the admin action ???