Re: keeping a list of objects sorted

2008-07-17 Thread Norman Harman
jelle wrote: > Hi Norman, > > Yep, I'm just looping through the list. > Pretty awkward, right? Yes, very. Is the html output order seemingly random? or is there some pattern to it? Cn you post the code for the view? I'm guessing there is a typo or something similar going unnoticed. -- Nor

Re: keeping a list of objects sorted

2008-07-17 Thread jelle
Hi Norman, Yep, I'm just looping through the list. Pretty awkward, right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To un

Re: keeping a list of objects sorted

2008-07-17 Thread Norman Harman
jelle wrote: > Hi, > > I'm using the tagging app to construct a view where the most recent > articles by tag are shown, ordered by date. > To do so I use the following code: > > all_tags = set([i.name for i in Tag.objects.all()]) > articles = [] > for i in all_tags: > qs = Ta

keeping a list of objects sorted

2008-07-17 Thread jelle
Hi, I'm using the tagging app to construct a view where the most recent articles by tag are shown, ordered by date. To do so I use the following code: all_tags = set([i.name for i in Tag.objects.all()]) articles = [] for i in all_tags: qs = TaggedItem.objects.get_by_model( Ar