Friday, May 27, 2011

Re: admin ordering for NULL fields

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. They appear at the very end. If I set the
> ordering to ASCENDING, then they do appear at the beginning but the
> rest of the order is, of course, not how I want it.
>
> So I couldn't find something in the documentation how I could achieve
> what I want. Any tips, hints?

http://www.mail-archive.com/django-users@googlegroups.com/msg64668.html

--
Kirill Spitsin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate