Re: queryset.latest bug

2006-06-22 Thread Spock
Thx, In this case if I want get [ ] if result is 0 i need to write my own method .. Regards, --~--~-~--~~~---~--~~ 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@g

Re: queryset.latest bug

2006-06-22 Thread Malcolm Tredinnick
On Thu, 2006-06-22 at 04:30 -0700, Spock wrote: > I'm getting some errors when trying call latest() method on quety set > when there is no associated data in table. Here is example: > Model(reduced): > > class Ticket(Model): > title = CharField('Tytul',maxlength=128) > priority = SmallInt

queryset.latest bug

2006-06-22 Thread Spock
I'm getting some errors when trying call latest() method on quety set when there is no associated data in table. Here is example: Model(reduced): class Ticket(Model): title = CharField('Tytul',maxlength=128) priority = SmallIntegerField('Priorytet',choices=PRIORITIES) author = Foreign