Re: Sorting by a nullable ForeignKey

2008-07-03 Thread noodslane
On Jul 1, 4:29 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Assuming all such problems have all been fixed now, though, it would seem > this restriction could be removed from admin.  I did some experimenting and > if I remove the code in admin that prevents such sorting, everything seems > to

Re: Sorting by a nullable ForeignKey

2008-07-01 Thread Alex Rades
http://code.djangoproject.com/ticket/7582 On Tue, Jul 1, 2008 at 11:03 AM, Alex Rades <[EMAIL PROTECTED]> wrote: > Ok just tested and works. Lets open a ticket. > Thank you > > > On Tue, Jul 1, 2008 at 12:26 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > >> On Mon, Jun 30, 2008 at 5:51 PM, Alex

Re: Sorting by a nullable ForeignKey

2008-06-30 Thread Alex Rades
Hi Karen, could you point me to the code in admin which is responsible for this behaviour? I could produce a patch, do some testing and submit a ticket. Thank you On Mon, Jun 30, 2008 at 9:29 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 11:32 AM, Alex Rades <[EMAIL

Re: Sorting by a nullable ForeignKey

2008-06-30 Thread Karen Tracey
On Mon, Jun 30, 2008 at 11:32 AM, Alex Rades <[EMAIL PROTECTED]> wrote: > Hi, > In the admin site (using latest newforms-admin), it seems not possible to > sort a table by a ForeignKey which is blank=True, null=True. > See this little example: > > class Group(models.Model): > name =

Sorting by a nullable ForeignKey

2008-06-30 Thread Alex Rades
Hi, In the admin site (using latest newforms-admin), it seems not possible to sort a table by a ForeignKey which is blank=True, null=True. See this little example: class Group(models.Model): name = models.CharField(max_length=200, primary_key=True) class Person(models.Model): name =