Repository navigation
|
I am looking to use Sortable2 along side a custom 'admin button' (the button runs a Celery task which syncs the data in the model with a cloud service). Everything works until I introduce a The actual template I'm putting in is as minimal as I could make it: (There's another template I've also used, which uses the Looking at the HTML source, this bit disappears when I use my custom template: I've found that if I paste the above into my custom template, everything works fine. The question then is... how do I get sortable2 and my custom template to play together so I don't have to hack this to work? |
Replies: 2 comments
|
adminsortable2 ships with its own modified version of a change_list_template, so make sure to either inherit from there, or to integrate the JSON |
|
Awesome - thank you @jrief For anyone wondering, this is (now) my template: (the main thing is to change |
adminsortable2 ships with its own modified version of a change_list_template, so make sure to either inherit from there, or to integrate the JSON
<script>into the block "extrahead" of your own template.