FunkyBob: can you give me any hints on how to fix that?
mgrouchy joined the channel
mekhami
FunkyBob, they're not ever as useful as guides targetting specific parts of any frame work ever?
StoicLoofah joined the channel
garrypol_ has quit
gazumps joined the channel
ArcTanSusan has quit
codeitloadit has quit
FunkyBob
foist: foist use a sub-select... Foo.objects.filter(pk__in=self.filter(**kwargs)).annotate(...)
it'll create a more complex query, but it'll avoid that problem
welcome to the suckage that is SQL :)
foist
FunkyBob: thank you. I will try that.
FunkyBob
mekhami: what is it about template blocks and inheritance you feel they're not clear about?
bmonty has quit
Tadgh joined the channel
foist
FunkyBob: is the db hit only once in this case?
bmonty joined the channel
ie, are the qs results being chained?
schinckel
foist: the db will only be hit when the queryset "wave function collapses".
Oops, listening to too many science podcasts.
gratimax has quit
bwreilly has quit
rojem has quit
mekhami
FunkyBob, it's usually more of a style thing than a clarity thing.. I learn better from some independent guides, things aimed at ground up learning than 'here's the documentation'. not always, but sometimes.
mmikeym joined the channel
cottons has quit
Bryson has quit
Tadgh has quit
jamescarr joined the channel
rakugaki joined the channel
ehmatthes has quit
Muchoz has quit
melinath has quit
Tadgh joined the channel
rtpg joined the channel
rtpg has quit
b4rbz joined the channel
gazumps has quit
trustyhank has quit
FunkyBob
mekhami: what is it about template blocks and inheritance you feel they're not clear about?
foist: it's one db hit
schinckel: heh
areski has quit
mekhami
FunkyBob, i don't see why you're asking me the same question.
anyways, i have a specific question
can i do something like Model.objects.all in a template or do I have to pass that into context
gazumps joined the channel
can i do db queries in the template language i guess is what i'm asking
FunkyBob
mekhami: I'm asking you the same question, becaue you didn't answer it.
you can call any method that does not require arguments... so yes, model.objects.all will work
but model.objects.filter(..) you can not
mekhami
okay.
interesting that it's not working yet..
Ankhers joined the channel
FunkyBob
what's not working yet?
mekhami
eh i think it has to do with bootstrap more than my query