class AKeywords(models.Model):
id = models.AutoField(primary_key=True, db_column=\"kw_id\")
word = models.CharField(max_length=200)
...
The current way to do this is with a Subquery and an OuterRef:
Example taken from my code. Store and StoreInformation have a field called store_number.
from django.db.models import Subquery, OuterRef
Store.objects.annotate(timezone=Subquery(
StoreInformation.objects.filter(store_number=OuterRef('store_number')).values('store_timezone')[:1]
))
This is joining to add a field called store_timezone.