On Sunday, July 12, 2015 at 5:50:11 PM UTC-7, Andrea wrote: > > Hello. I'm new to both django and python. Been trying to figure out how to > group items from a model for hours now. >
Check out the `regroup` template tag: https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#regroup It can probably save you from writing custom code for this. ./s -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/40de5ec2-c4d1-4cf2-8e4e-766dea21460b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.