Django admin Ordering the display

2022-04-02 Thread Ali Hamza
How i Order this field descending order. i want completeorders show first then completemodules [image: DeepinScreenshot_select-area_20220402171316.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: admin ordering for NULL fields

2011-05-27 Thread Kirill Spitsin
On Fri, May 27, 2011 at 12:35:26AM -0700, Dennis Schmidt wrote: > In the admin panel I set a (descending) ordering on a model's date > field. That's fine of course. Now, the "problem" is, that this field > may be NULL in some cases and I want these items to appear at the > beginning of the list. Th

admin ordering for NULL fields

2011-05-27 Thread Dennis Schmidt
In the admin panel I set a (descending) ordering on a model's date field. That's fine of course. Now, the "problem" is, that this field may be NULL in some cases and I want these items to appear at the beginning of the list. They appear at the very end. If I set the ordering to ASCENDING, then they

Re: Admin Ordering

2009-01-15 Thread Scott Moonen
Sanrio, this is a known problem. See open ticket http://code.djangoproject.com/ticket/4926 -- Scott On Thu, Jan 15, 2009 at 11:21 AM, wrote: > > Hi, > > I just found out that you can only use one ordering key in the > ordering. Is this true? If so, what can I do to have ordering on 2 > keys

Admin Ordering

2009-01-15 Thread sanrioyt
Hi, I just found out that you can only use one ordering key in the ordering. Is this true? If so, what can I do to have ordering on 2 keys instead? (short of overriding the admin, and writing my own custom class) Thanks, sanrio --~--~-~--~~~---~--~~ You receive

Re: New Comments Framework admin ordering issue

2008-09-08 Thread shelbybark
Ah, yes. Very good. I'll keep a watch on that. Thanks! On Sep 8, 6:19 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 6:43 PM, shelbybark <[EMAIL PROTECTED]> wrote: > > > I recently converted my personal site over to using django 1.0. So, I > > followed the upgrading guide

Re: New Comments Framework admin ordering issue

2008-09-08 Thread Karen Tracey
On Mon, Sep 8, 2008 at 6:43 PM, shelbybark <[EMAIL PROTECTED]> wrote: > > I recently converted my personal site over to using django 1.0. So, I > followed the upgrading guide for moving my old comments over to using > the new comments. However, since the upgrade, I've noticed the > ordering of the

New Comments Framework admin ordering issue

2008-09-08 Thread shelbybark
I recently converted my personal site over to using django 1.0. So, I followed the upgrading guide for moving my old comments over to using the new comments. However, since the upgrade, I've noticed the ordering of the comments in the admin seems to be chronological, rather than reversed to see th

Re: django admin ordering by last modified

2007-03-27 Thread damacy
hello there, thanks for your help. by the way, i've been wondering what it means by '...regardless of how many fields are in "ordering" the admin site uses only the first field'. the "first field" in my example is the 'lastname' although it does not seem the data are ordered by the field. whenev

Re: django admin ordering by last modified

2007-03-27 Thread Gilhad
On Tuesday 27 March 2007 04:28, damacy wrote: > hi, there. > > i have a problem with the django admin site. > > i have a table called 'players' which consists of the following > fields; > 'lastname', 'firstname' and 'lastmodified'. > and i have defined the ordering of the table by > ordering = ['l

django admin ordering by last modified

2007-03-26 Thread damacy
hi, there. i have a problem with the django admin site. i have a table called 'players' which consists of the following fields; 'lastname', 'firstname' and 'lastmodified'. and i have defined the ordering of the table by ordering = ['lastname', 'firstname']. (i.e. 'lastname' and then 'firstname'

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
I solved it! The problem was because I was trying to sort by a field that was not listed on Admin.list_display Updated code: class Model(models.Model): opis= models.CharField(maxlength=50) znamka = models.ForeignKey(Znamka) def __str__(self):

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
>> class Item(models.Model): > > name = models.Charfield(maxlength=100) > > user = models.ForeignKey(User) > > > > def get_user_name(self): > > return self.user.name > > > > class Admin: > > list_display = ('name', 'get_user_name') >

Re: admin ordering question

2006-06-21 Thread Adrian Holovaty
On 6/21/06, Mikeal Rogers <[EMAIL PROTECTED]> wrote: > class Item(models.Model): > name = models.Charfield(maxlength=100) > user = models.ForeignKey(User) > > def get_user_name(self): > return self.user.name > > class Admin: > list_di

admin ordering question

2006-06-21 Thread Mikeal Rogers
Hiya, Here is my issue I have a Model like this class Item(models.Model): name = models.Charfield(maxlength=100) user = models.ForeignKey(User) def get_user_name(self): return self.user.name class Admin: list_display = ('name', 'g