Hello Cristiano, my relation ship data base is in this case one to many.
thanks

On Thursday, November 16, 2017 at 11:38:27 PM UTC-2, Cristiano Coelho wrote:
>
> .select_related or prefetch_related? Depends on if it's a 1-Many or 
> Many-Many relationship.
>
> El jueves, 16 de noviembre de 2017, 13:58:32 (UTC-3), Angel Omar Rojas 
> Pacheco escribió:
>>
>> hello peolpe
>>
>> I need your help please, I read documentation django rest 
>> framework/serialize, but isn't find my solution, I need this query in 
>> django:
>>
>> select * from auth_user as auser inner join profilecolonybit_profile as 
>> profileu on auser.id=profileu.user_id
>>
>> this show me all users and profiles related with similar id
>>
>> but de documentation not show me an example like my query
>>
>> please help me.
>>
>> thanks
>>
>> regards
>> Angel.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52404297-de08-4931-9bfa-5973417c3509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to