Posts by Pata_marcelo • 11 points
2 posts
-
0
votes2
answers102
viewsA: How to relate two classes in the same Model Django
Fala Gabriel, I was able to bring the information to the list_display using the code below, using within the admin.py request class: def get_cidade(self,obj): return obj.fornecedor.cidade…
-
1
votes2
answers102
viewsQ: How to relate two classes in the same Model Django
hello, I am new to Django and I am trying to get information related to two different classes, with 1 variable as "base" for it. In case I have the Customer and Order class, and I would like to…