Re: Adding custom filter to stand-alone template

2011-05-05 Thread Up2L8
On May 4, 7:10 pm, Ethan Jucovy wrote: > On Wed, May 4, 2011 at 7:19 PM, Ethan Jucovy wrote: > > This also feels a little hacky, but IMHO cleaner than messing with > >> builtins. > > Looking at django/template/__init__.py -- it does seem like INSTALLED_APPS > and django.template.builtins are th

Adding custom filter to stand-alone template

2011-05-04 Thread Up2L8
I'm trying to use the Template library outside of a normal Django webapp and am having difficulty figuring out the right way to register a custom filter. The current implementation works, but I don't like accessing the guts of the template module (see below), or calling my custom Library a "builtin

Re: 1.1 request

2009-07-15 Thread Up2L8
On Jul 15, 8:54 am, Up2L8 wrote: > Is there any way Ticket #10977 could get rolled up into the 1.1 > release? > > Using the intersection and union operators seems borked for some > applications and it sounds like this should fix it. I guess I should mention that it seems th

1.1 request

2009-07-15 Thread Up2L8
Is there any way Ticket #10977 could get rolled up into the 1.1 release? Using the intersection and union operators seems borked for some applications and it sounds like this should fix it. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Return multiple counts from the same table in one query?

2009-05-14 Thread Up2L8
thod for querysets: > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#count > > However, for this, it may be easiest to use raw sql within Django: > > http://docs.djangoproject.com/en/dev/topics/db/sql/ > > -Raman > > On May 13, 6:43 pm, Up2L8 wrote: > > > Is th

Return multiple counts from the same table in one query?

2009-05-13 Thread Up2L8
Is there a way to do something like this in django? SELEC COUNT(t1.id), COUNT(t2.id) FROM Test_testrun t1 LEFT JOIN Test_testrun t2 ON t2.id = t1.id AND t2.passed=True Sorry for my newbness, I've been searching for awhile now with no luck. Eric --~--~-~--~~~---~--~-