Re: Adding custom row's

2006-09-16 Thread Anders Aagaard
Malcolm Tredinnick wrote: > On Sat, 2006-09-02 at 13:53 -0700, Anders Aagaard wrote: > > Hi > > > > I found I could use x.extra(select) statements to add custom row's to > > my objects, > > Just to get the terminology right: you mean custom attributes. A sin

Adding custom row's

2006-09-02 Thread Anders Aagaard
" way of adding custom row's? (note that the actual model is much more advanced, and so are the extra row's, I'm actually pulling extra row's for "files_total", "files_checked (which is per user)" and "percentage_checked", calculated based on

Prefered way of getting current url.

2006-09-01 Thread Anders Aagaard
Hi I basically want to do what the admin page is doing now in regards to sorting. It auto constructs a link replacing a few request.GET items. I was wondering what's the prefered way of doing this? Would I have to make a custom templatetag or something like that? Saw I have a url like this: /

Re: A few questions about queryset's.

2006-08-31 Thread Anders Aagaard
Steven Armstrong wrote: > On 08/31/06 17:22, Anders Aagaard wrote: > > Hi > > > > I've been learning to love django lately, but I can't quite wrap my > > head around more advanced querysets. I've listed my classes and their > > sql tables on

A few questions about queryset's.

2006-08-31 Thread Anders Aagaard
Hi I've been learning to love django lately, but I can't quite wrap my head around more advanced querysets. I've listed my classes and their sql tables on the bottom, as all problems are linked to those tables. First problem: I have a class, Content, with a set of tags, how can I filter for mu