Tryingg to work around the problem:

Previous Avail ordering statement:
>         ordering = ('week', 'orders_product.name', 'orders_producer.name',)

Changed my models to have sortable foreign key values:

class Producer(models.Model):
    name = models.CharField(max_length=32, primary_key=True)
[...]
class Product(models.Model):
    name = models.CharField(max_length=32, primary_key=True)
[...]

And changed the Avail ordering statement like so:
        ordering = ('week', 'product', 'producer',)

Made no difference.  Avails still display in the order in which they
were entered.

By the way, no order messages or other indication that the ordering is
not working in either case.  Just silent failure.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to