I suppose that it is possible that Grappelli's JavaScript is ordering them. If you look at the raw HTML of the admin pages using curl or wget, or with JavaScript disabled in the browser, is the order maintained (this is harder than it sounds, since in curl you would have to fake a logged in session with admin privileges, and even in a no JS browser, grappelli might make it hard to log in)?
Bill On Wed, Jan 30, 2013 at 7:53 PM, Ken Ricci <k...@kenricci.ca> wrote: > I have a Django/Grappelli admin form for job postings which has a > manytomany relationship for job requirements (using filter_horizontal). In > the admin form, the order chosen stays constant when I save the job posting > and display it again later. I'm trying to repeat the order in another app > that selects the job requirements using the join table, but no matter which > column I ORDER BY (or even if I don't use an ORDER BY) in the SQL, I cannot > get the same order of job requirements as displayed in the admin form. > > Any idea how the chosen items retain their selected order? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.