Re: Best way to deal with dictionaries of lists (equivalent of SQL GROUP BY)

2009-02-11 Thread Malcolm Tredinnick
On Tue, 2009-02-10 at 15:37 -0800, Adam Nelson wrote: > I'm looking at the documentation here: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup > > And am looking for the best practices way to deal with doing that from > within the manager. You point to documentation

Best way to deal with dictionaries of lists (equivalent of SQL GROUP BY)

2009-02-10 Thread Adam Nelson
I'm looking at the documentation here: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup And am looking for the best practices way to deal with doing that from within the manager. This seems like a common issue: 1. I have two models, one foreign keys to the other (comments