The best I've found is this <http://stackoverflow.com/a/8417283/187171>.
On Wednesday, May 5, 2010 11:56:02 PM UTC+7, palmeida wrote: > > Hi, > > I'm having a hard time grasping the concept of the can_order argument, > when creating formsets. Once objects are created and saved through the > formset, is it possible to reorder them? Where does the order information > get stored? I tried just adding can_order=True when creating the formset > (it's an inline_formset) and the order fields do show up on the form, but > they don't seem to have any effect. I'm just saving the formset. Should I > use "formset.ordered_forms" to sort them and then save each one > individually? > > I really need to be able to reorder after saving, because some of these > objects are being created outside forms and I want the users to reorder > them if they want to. If that is not possible with can_order, I think an > easy way to do it would be to have an extra variable in that model, storing > the order (in the form it would work just like the fields created by > can_order). Does that sound reasonable? > > Thanks for any help, > Paulo Almeida > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/FZ-bC1LBZmsJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.