Re: arbitrary ordering in a model

2010-11-18 Thread ringemup
Grappelli now has a drag-n-drop sorting option, but it only works for inlines. On Nov 18, 1:11 pm, Daniel Carvalho wrote: > Hi > I have some models where I want objects to be displayed in an arbitrary > order. > > For that I have in the model a number field, which is used to

arbitrary ordering in a model

2010-11-18 Thread Daniel Carvalho
Hi I have some models where I want objects to be displayed in an arbitrary order. For that I have in the model a number field, which is used to sort. class MyModel: ... class Meta: ordering = ["orderfield"] It would be cool if instead of editing this field, I have a "go up" and "go down"