2008-3-20

16:53 cccp
this should also work with null=False, let me try
16:54 PhiR
if you really can't set it to null=False you might want to have a look at in_bulk
16:54 hylje had been caught talking out of one's arse
16:54 Uz_
i think qs-rf will fix that, cccp
16:54 Uz_
at least i was told so
16:55 cccp
PhiR: huh, how could i use that for my purpose?
16:55 shabda
shouldnt django.test.client .Client.get() return a object which is not HttpResponse?
16:55 PhiR
cccp, if you want to avoid hitting the DB for each object you can use in_bulk to get them all in one query
16:56 PhiR
but you're kinda bypassing the ORM this way :|
16:56 cccp
oh, you mean manually fetching the related models?
16:57 PhiR
yeah
16:57 Uz_
cccp: or you could wait for qs-rf which should be merged with trunk within the next days
16:57 PhiR
if you absolutely, positively need to optimize your query count
16:59 cccp
hrm
16:59 cccp
iirc qs-rf was also the brach which allowed model inheritance, right?
16:59 cccp
i just manually implemented that, lead so some ugly code in several places :/
17:01 cccp
within the next days, you say? that would rock
17:02 cccp
(and make me kick out a lot of code)
Page 22 of 22   ← Previous  (2,118 total)