Posts by mr.abdo • 131 points
2 posts
-
1
votes2
answers763
viewsA: Access related table columns through ORM DJANGO
I managed to solve this problem. I will register here to help someone if they go through the same. I passed the key author__user__email for the result by putting author__user__email in values.…
-
2
votes2
answers763
viewsQ: Access related table columns through ORM DJANGO
How to access the object user and its attributes after a join? This is my consultation Idea.objects.select_related("user").values("author_id").annotate( qtd=Count('author_id')) Example of a result:…