# Django Join tables on query

**URL:** <https://forum.djangoproject.com/t/django-join-tables-on-query/7977>\
**Category:** Using Django\
**Created:** [May 20, 2021, 9:34am UTC](https://forum.djangoproject.com/t/django-join-tables-on-query/7977 "2021-05-20T09:34:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goncaloLopesMarques](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/goncalolopesmarques/32/4207_2.png) [@goncaloLopesMarques](https://forum.djangoproject.com/u/goncaloLopesMarques)\
**Post date:** [May 20, 2021, 9:34am UTC](https://forum.djangoproject.com/t/django-join-tables-on-query/7977/1 "2021-05-20T09:34:29Z")

</div>

Hi guys,  
I have the following set up in my models:  
Model Point — Foreign Key — Tag Model-- OnoToOneField —\> User  
Model Point – Foreign Key – Area Model

So i need to know if when filter points like, Point.objects.filter(x = y) i can retrieve all the Tag(Foreign key) fields. On sql if i join the tables i can get what ever field i want, but with the ORM i couldnt do it so far.

Any suggestion?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [May 20, 2021, 12:29pm UTC](https://forum.djangoproject.com/t/django-join-tables-on-query/7977/2 "2021-05-20T12:29:14Z")

</div>

Have you worked through the [Official Django Tutorial](https://docs.djangoproject.com/en/3.2/intro/tutorial01/)? If you haven’t, I strongly encourage it - it will teach you a lot about accessing data through foreign key relationships.

Beyond that, it’s actually going to be easier to understand and answer your question if you post your models and phrase your question relative to the specific fields you’re interested in, along with posting what you’ve currently tried and what’s not working for you.
