Re: aggregate formatting

2009-05-06 Thread mamco
perfect. Thank you George. On May 6, 2:42 pm, George Song wrote: > {{{ > return '%s' > %Cheque.objects.aggregate(cheque_sum=Sum('amount'))['cheque_sum'] > > }}} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django and a basic SQL join

2009-05-06 Thread mamco
jrs_66: you may find some comfort in the http://ubuntuforums.org/forumdisplay.php?f=39 forum - not specific to django, but quite a friendly bunch and lots of python folks willing to assist with the learning process. tag your posts with 'django' On May 6, 2:17 pm, jrs_66

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. >

aggregate formatting

2009-05-06 Thread mamco
I have two models "Deposit" and "Cheque". I'm trying to show total the amount of cheques in the admin area using the method name in the list_display. It seems to work (although I think the documentation suggests it may not because it requires the lookup for each row shown). I've got this in

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

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:

Re: pizzas toppings, and subs

2009-01-14 Thread mamco
altogether. On Jan 14, 7:52 pm, mamco <macgilliv...@gmail.com> wrote: > in the documentation the many to many relationship between toppings > and pizzas is well presented (http://docs.djangoproject.com/en/dev/ > topics/db/models/#many-to-many-relationships).  My question has to do &

pizzas toppings, and subs

2009-01-14 Thread mamco
in the documentation the many to many relationship between toppings and pizzas is well presented (http://docs.djangoproject.com/en/dev/ topics/db/models/#many-to-many-relationships). My question has to do with something else that would have toppings, subs for example. If in my toppings model,

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread mamco
you probably need to create an admin.py file in your application directory. from: http://docs.djangoproject.com/en/dev/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin something like (...project/app/admin.py): from mysite.polls.models import Poll from django.contrib import admin