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
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
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
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
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
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
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
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
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
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
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'
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):
>> 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')
>
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
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
15 matches
Mail list logo