Re: Call action with a link in the admin site

2013-07-04 Thread Jesús Lucas Flores
Hola Juan Antonio, Es totalmente posible. Puedes ver un ejemplo en alguno de mis proyectos: https://github.com/jelukas/presupy/blob/master/presu/admin.py#L39-L47 Un saludo 2013/7/4 Juan Antonio García Cano > In the admin.py i have this function: > > actions = ['generar_pdf'] > def generar_pd

Call action with a link in the admin site

2013-07-04 Thread Juan Antonio García Cano
In the admin.py i have this function: actions = ['generar_pdf'] def generar_pdf(self, request, queryset): ... (This function make a PDF of the object selected) And i show one button in the list_display (of the admin site) with this function: def boton_mail(self,obj): return m