Hi,
You need to replace
queryset=GlobePlant.objects.all()
with
queryset=GlobePlant.objects.all().order_by(...)
I can't tell you what arguments to give "order_by()" without seeing your GlobePlant model, but if you read Django's documentation for order_by you should be able to determine that.
Regards,
Antonis
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/56143c58-7525-4cab-959b-acf79b50a7dbn%40googlegroups.com.
Same thing, use
CommodityLocatinoXref.objects.select_related(...).filter(...).order_by(...)
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/743aaa4c-f709-424a-adfc-cd60b72f4644n%40googlegroups.com.
Please read the documentation of order_by(). It tells you how you
can do this.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bf0dfe11-a8a0-4265-a698-3010730de403n%40googlegroups.com.