Re: Issue with regroup and sorting with foreign keys

2007-09-11 Thread Nicolas Steinmetz
Samuel Adam a écrit : > I have had similar issues while sorting with foreignkeys, try > specifying the sort like this : > > {% regroup techskill.name.all|dictsort:"domain.id" by > domain as grouped %} Right ! You already told me about this a long long time ago. I just forgot. Thanks samuel !

Re: Issue with regroup and sorting with foreign keys

2007-09-11 Thread Samuel Adam
I have had similar issues while sorting with foreignkeys, try specifying the sort like this : {% regroup techskill.name.all|dictsort:"domain.id" by domain as grouped %} On Sep 11, 11:04 am, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > Hello, > > Below my model with which I have an issue : > >

Issue with regroup and sorting with foreign keys

2007-09-11 Thread Nicolas Steinmetz
Hello, Below my model with which I have an issue : """ Technicat skills """ class DomainTechSkill(models.Model): name = models.CharField('Domaine de compétence technique', Maxlength=100, core=True) class Techskill(models.Model): who = models.ForeignKey(User,