Re: Possible bug in Meta ordering in 0.96

2007-10-03 Thread Xan
Well, so it's not a bug! But it's an enhancement:: http://code.djangoproject.com/ticket/5673 Thanks a lot, Xan. On Oct 2, 8:49 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > As James says, it's not a bug. But I'd agree it seems a little odd, until > you look a little more closely at the admin

Re: Possible bug in Meta ordering in 0.96

2007-10-03 Thread Tai Lee
I've implemented multi-column ordering in my own projects, and don't think it's that tricky to use (in the UI, implementation may be tricky but not too tricky). I use multi-column ordering all the time in my apps and most desktop apps, so I'd love to see it built into the Django admin. In terms o

Re: Possible bug in Meta ordering in 0.96

2007-10-02 Thread Karen Tracey
As James says, it's not a bug. But I'd agree it seems a little odd, until you look a little more closely at the admin interface. It allows the user to sort on fields by clicking on column headers. It gets a little messy to try to combine that feature with multi-field ordering specified in the mo

Re: Possible bug in Meta ordering in 0.96

2007-10-02 Thread James Bennett
On 10/2/07, Xan <[EMAIL PROTECTED]> wrote: > I know that this behaviour is documented, but is it a bug so?. The > strange behaviour of admin, even altough it's documented, is strange. > Why you don't consider it a bug? Is there a ticket of that? Do you > plan to change this (strange) behaviour in

Re: Possible bug in Meta ordering in 0.96

2007-10-02 Thread Xan
Yes. I understand it. I know that this behaviour is documented, but is it a bug so?. The strange behaviour of admin, even altough it's documented, is strange. Why you don't consider it a bug? Is there a ticket of that? Do you plan to change this (strange) behaviour in next version (svn)? If not, w

Re: Possible bug in Meta ordering in 0.96

2007-10-02 Thread Michael Radziej
On Mon, Oct 01, Xan wrote: > > > > On Sep 30, 11:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > On 9/30/07, Xan <[EMAIL PROTECTED]> wrote: > > > > > Although ordering is ('tipus', 'nom'), django admin interface displays > > > the Centre objects by 'tipus' but randomly (?) with 'nom'. I

Re: Possible bug in Meta ordering in 0.96

2007-10-01 Thread Xan
On Sep 30, 11:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/30/07, Xan <[EMAIL PROTECTED]> wrote: > > > Although ordering is ('tipus', 'nom'), django admin interface displays > > the Centre objects by 'tipus' but randomly (?) with 'nom'. I don't > > know how can I do, because, in shel

Re: Possible bug in Meta ordering in 0.96

2007-09-30 Thread James Bennett
On 9/30/07, Xan <[EMAIL PROTECTED]> wrote: > Although ordering is ('tipus', 'nom'), django admin interface displays > the Centre objects by 'tipus' but randomly (?) with 'nom'. I don't > know how can I do, because, in shell when I put > > Centre.objects.order_by('tipus', 'nom') Please read the Dj

Possible bug in Meta ordering in 0.96

2007-09-30 Thread Xan
Hi, In my project, I have this class: class Centre(models.Model): [...] tipus = models.CharField(maxlength=14, choices=TIPUS_CENTRE, verbose_name="Tipus de centre", default='IES') nom = models.CharField(maxlength=100, verbose_name="Nom del centre") [...] def __str__(se