2015-11-09 49 views
-1

我正在定製Django管理,所以我增加了一個自定義的按鈕模型管理員通過「推管理員/ change_list.html」模板衝突和Django返包,而在Django管理添加自定義按鈕

{% block object-tools-items %} 
     //add custom button here 
    {% endblock %} 

它看起來這樣

enter image description here

當我加入一個新的包django-reversion爲模型 ,其用於恢復數據創建新的按鈕版本但條代替自定義按鈕我CREA特德。我發現這是因爲軟件包也在擴展admin/change_list.html模板和Overiding object-tools-items塊。

enter image description here

,我想這樣的一些東西。請幫忙。

enter image description here

回答

相關問題