hedronist wrote: > 1. How many objects are we talking about? 10? 100? 10^6? No more than 10 > 2. Can a single object participate in multiple orderings? > no, there would be one order for the set of objects
> If the amount of data is small, you could simply save the ordering in > a CharField/TextField as a list of comma separated IDs. We have a > trivial model called ConfigValues that is simply name/value pairs that > stores various config values (I know, duh!). Anyway, we have a few of > these that basically do what you described - remember the display > order for various groups of objects. We only have groups of up to 50 > or 60 objects (which can be in more than one group), so it suffices, > but it wouldn't work well for large collections. > > I am guessing that this would be useful in a situation where I was going to have lots of users all describing their own order of things. I am interested in having one (or two) admin users select the order. Would a separate model be appropriate to accomplish this? I'm guessing that it might be cleaner as far as database updates than having an integerfield on the model to be sorted, but it'd also make the actual sorting part (when the objects are displayed) a little trickier. Since I'll be mostly displaying, and not changing the order terribly often, I might stick with the integerfield. I'm still not sure where I need to poke around to find a javascript widget that can return the list order. Thanks! Jeff Anderson
signature.asc
Description: OpenPGP digital signature

