Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Django snippets: Orderable inlines using drag and drop with jQuery UI. Code example from my PyCon tutorial on customising the Django admin interface.

3 comments

  1. Nice one Simon! I have been meaning to tackle something similar for a while.

    Travis Cline - 13th September 2008 18:44 - #

  2. Great!
    I have made sorl-curator http://code.google.com/p/sorl-curator which has reordering but and this tells me I should implement it on inlines as well.

    Mikko - 18th September 2008 09:33 - #

  3. doesn't really work: in case of an error, the ordering is lost. moreover, setting up a script for every single inline-formset is a bit tedious.
    nice example of something ill-conceived ... if you try to make this work smoothly, you'll end up frustrated (because of djangos limited ordering capacities in the admin). IMHO, this should already be covered by using "order_with_respect_to".

    patrickk - 21st October 2008 17:59 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site