djangosnippets.org: Latest snippets posted by johjhttps://djangosnippets.org/users/johj/2010-06-08T20:24:57.490157-05:00johjDrag and drop ordering of admin list elements using jQuery UI
2010-06-08T20:24:57.490157-05:00johjhttps://djangosnippets.org/snippets/2057/<p>Adds drag-and-drop ordering of rows in the admin list view.</p>
<p>The only requirements is that the model has a field holding the position and that the field is made list_editable in the ModelAdmin. The changes of the ordering are applied after clicking 'Save'.</p>
<p>The included javascript uses <a href="http://jqueryui.com/demos/sortable/">jQuery UI's sortable …</a></p>
Freely redistributable