Re: Displaying rows as columns

2009-05-06 Thread mamco
thanks George - working on it - nearly there. On May 2, 12:17 pm, George Song wrote: > On 5/2/2009 7:40 AM, George Song wrote: > > > Pass `entries` and `schedule` as context vars to your template, and > > you can iterate through your schedule using ordered list of entries. > > There's also `djan

Re: Displaying rows as columns

2009-05-02 Thread George Song
On 5/2/2009 7:40 AM, George Song wrote: > Pass `entries` and `schedule` as context vars to your template, and > you can iterate through your schedule using ordered list of entries. There's also `django.utils.datastructures.SortedDict` so you can bypass the `entries` business and save yourself a

Re: Displaying rows as columns

2009-05-02 Thread George Song
On 5/1/2009 5:47 PM, mamco wrote: > In attempting to get a better grasp of Django, I'm attempting a fairly > simple timecard app. Multiple users of a small chain of retail > stores, where occasionally the employees jump between stores(company), > and between projects and activities. > > The inte

Re: Displaying rows as columns

2009-05-02 Thread mamco
@George great question. In a very long ago php implementation of something similar with Access as a backend, I simply queried the date range in question, and built up an array, then walked through that while building the html table. It was ugly and even had some queries right in along the tr/td

Re: Displaying rows as columns

2009-05-01 Thread Lars Stavholm
mamco wrote: > Hi, > In attempting to get a better grasp of Django, I'm attempting a fairly > simple timecard app. Multiple users of a small chain of retail > stores, where occasionally the employees jump between stores(company), > and between projects and activities. > > The interesting model i

Re: Displaying rows as columns

2009-05-01 Thread George Song
On 5/1/2009 5:47 PM, mamco wrote: > Hi, > In attempting to get a better grasp of Django, I'm attempting a fairly > simple timecard app. Multiple users of a small chain of retail > stores, where occasionally the employees jump between stores(company), > and between projects and activities. > > Th

Displaying rows as columns

2009-05-01 Thread mamco
Hi, In attempting to get a better grasp of Django, I'm attempting a fairly simple timecard app. Multiple users of a small chain of retail stores, where occasionally the employees jump between stores(company), and between projects and activities. The interesting model is something like this: cla