Thanks Arien, this was what I was looking for, I just couldn't figure
out what the syntax needed to be, they really should add this example
to the Django documentation.
On Jul 8, 1:30 pm, Arien <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 8, 2008 at 11:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
On Tue, Jul 8, 2008 at 11:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of an elegant way in Django to group database items
> under 2 categories.
Don't know about elegant, but something like this would work:
{% regroup committees by state as committee_state_list %}
{%
Hi Josh,
Have you tried passing a tuple with the two columns to the group_by method ?
Cheers.
--
Rui
On Tue, Jul 8, 2008 at 1:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of an elegant way in Django to group database items
> under 2 categories.
>
> For example I
Does anyone know of an elegant way in Django to group database items
under 2 categories.
For example I have a database model that contains the following
information:
State
Committee_Type
Committee
When I send it out to the template, I need to be able to group each
committee under its type and
4 matches
Mail list logo