Re: "Possesive" filter

2007-06-17 Thread Mike H
Sorry, I'll file a ticket in trac in future, and I had no idea google groups would file the email as it did, I thought I was starting a new discussion. I'll keep it in mind in future :) Mike Malcolm Tredinnick wrote: > On Sun, 2007-06-17 at 20:08 +0100, Mike H wrote: > >> Hi all, >> >> I n

Re: "Possesive" filter

2007-06-17 Thread Malcolm Tredinnick
On Sun, 2007-06-17 at 20:08 +0100, Mike H wrote: > Hi all, > > I needed a nice way of saying "mike's friends" in a template when the > currently logged in user was "mike", but "james' friends" when it was > james. I realise this is a very English biased filter, but here's a > patch to add it t

Re: "Possesive" filter

2007-06-17 Thread Mike H
Whoops, just saw I had "possessive" spelled incorrectly... revised the patch! Cheers, MikeH --- django0.96/template/defaultfilters.py 2007-03-10 08:11:28.0 + +++ django/template/defaultfilters.py 2007-06-17 20:02:50.0 +0100 @@ -551,6 +551,15 @@ pass

"Possesive" filter

2007-06-17 Thread Mike H
Hi all, I needed a nice way of saying "mike's friends" in a template when the currently logged in user was "mike", but "james' friends" when it was james. I realise this is a very English biased filter, but here's a patch to add it to defaultfilters in template. Cheers, MikeH --- django0.9