Sunday, February 26, 2017

Re: group by 3 fields

Order by is not the same as group by. Group by does aggregation 

On Sun, Feb 26, 2017 at 5:30 AM chris rose <chris.rose.one@gmail.com> wrote:
there is a model meta option called ordering. you can specify a list of fields to order by


i have only used this in the admin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY6Dyuhc0Ud6zEP7ak9NXn3geC_5k5-kdscuFMafE%2B%3De%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment