I am new to Python/Django. I have two tables tableA
id(pk) Name desc tableBID(fk)
1 ABC testdesc 1
2 XYZ testdes 2
tableB
id Name
1 firstName
2 Second Name
In Django, I have written below code
records = tableA.objects.all()
this is giving me tableA
data but I need the TableB
Name also.
Can anyone told me how to get the TableB name like
1 ABC testdesc 1 firstName
2 XYZ testdes 2 Second Name