order_with_respect_to fail

4 views
Skip to first unread message

Thierry Stiegler

unread,
Dec 23, 2008, 10:33:43 AM12/23/08
to Django developers
Hi !

I got some errors by using the Meta options order_with_respect_to:
<code>
class Category(PublicationBase, LocalisationBase):
ITEM_PER_PAGE = 12
name = models.CharField(max_length=255)
pictogram = models.ImageField(upload_to="categories", blank=True)
old_id = models.PositiveIntegerField(blank=True)
parent = models.ForeignKey("Category", blank=True, null=True)

class Meta:
ordering = ['name']
order_with_respect_to = 'parent'

def __unicode__(self):
return self.name
</code>

I post on django-users. I got some email from many django users who
whant to know if I found a workaround.
I found this ticket: http://code.djangoproject.com/ticket/2740 but I
don't like to patch django.

Here is my post on django-users:
http://groups.google.com/group/django-users/browse_thread/thread/1374d256a91393c9/6b5391721a656adc?lnk=gst&q=order_with_respect_to+fail+any+workaround#6b5391721a656adc

I know you work really hard for us, but can I know if the bug will be
corrected shortly or not. With this information I I can take the
decision of patching or not django.

Regards,

Thierry

Reply all
Reply to author
Forward
0 new messages