Cómo puedo agregar un botón de acción después del lado inferior derecho de la tabla en django.admin

How i can add action-button after right bottom side of table in django.admin?

I know, that i can add action into the list on left top side of table (https://docs.djangoproject.com/en/1.4/ref/contrib/admin/actions/), but how i can do like this

enter image description here

Can i do this without editing admin templates?

preguntado el 28 de enero de 14 a las 18:01

1 Respuestas

I guess that not really. You'll need to override admin templates, but it is not much hassle, as:

  • You can override them for each model separately (or for whole site).
  • You can override template for model X, and then inherit from base template, changing only what you want.

You'll need to override template for this model, inherit it from the default template and add button you want. Consult esta página de manual. Actuall you will need to override 'change_list.html' template, and change will be really similar a este. La change_list.html contains block object-tools and put button code there.

Respondido el 28 de enero de 14 a las 23:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.