Hello list. I'm have a questio. if I have an "inner join" query an use
an "only" restriction, how can i put a field of the second table in
the "only" tuple?
Example:
Model
-
class Abc(models.Model):
fk_user = models.ForeignKey(User, related_name='user_pp')
fk_ee = models.ForeignKe
On Oct 6, 2:44 am, refreegrata wrote:
> Hello list. I'm have a questio. if I have an "inner join" query an use
> an "only" restriction, how can i put a field of the second table in
> the "only" tuple?
>
> Example:
>
> Model
> -
> class Abc(models.Model):
> fk_user = models.ForeignKey(U
that don't work. The query can find the "User" fields.
On 6 oct, 05:43, Daniel Roseman wrote:
> On Oct 6, 2:44 am, refreegrata wrote:
>
>
>
> > Hello list. I'm have a questio. if I have an "inner join" query an use
> > an "only" restriction, how can i put a field of the second table in
> > the "
starting from Abc works with "select_related"
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroup
4 matches
Mail list logo