Just to clarify. I want the to do this A.objects.all().values()
and still get the each list in the result to have the same "field
order" as the database table defined.
On Aug 6, 9:57 am, kostia <kostya.demc...@gmail.com> wrote:
> use table = ModelName.objects.all().order_by("filter_name")
>
> It is ordered by id field apriori.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment