Google Groups Home
Help | Sign in
Message from discussion select_related additions
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
David Cramer  
View profile
 More options Aug 1 2007, 8:12 pm
From: David Cramer <dcra...@gmail.com>
Date: Thu, 02 Aug 2007 00:12:40 -0000
Local: Wed, Aug 1 2007 8:12 pm
Subject: Re: select_related additions
Seems I slipped in the diff. I have to actually apply the patch to at
least 2 different versions of Django with our current setup, can get
tedious :P

*args should be *fields :)

On Aug 1, 9:26 am, Michael Radziej <m...@noris.de> wrote:

> On Wed, Aug 01, David Cramer wrote:

> > I've submitted a ticket and attached part of the patch (the fields
> > selection on select_related):http://code.djangoproject.com/ticket/5020

> Funny, I'm working on something similar.

> I don't understand how the new API looks like, and particularily how this
> could work:

>   def select_related(self, *args, **kwargs):
>     ...
>     return self._clone(_select_related=true_or_false,
>             _max_related_depth=depth, _recurse_fields=fields)

> I don't see how `fields` gets populated. Can you please help with a
> pointer?

> Michael

> --
> noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
> Tel +49-911-9352-0 - Fax +49-911-9352-100http://www.noris.de- The IT-Outsourcing Company

> Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
> Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google