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
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
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.
>
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
@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
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:
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
&
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,
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
9 matches
Mail list logo