modeladmin

Disable link to edit object in django's admin (display list only)?

Disable link to edit object in django's admin (display list only)? Question: In Django’s admin, I want disable the links provided on the “select item to change” page so that users cannot go anywhere to edit the item. (I am going to limit what the users can do with this list to a set of …

Total answers: 13

Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields?

Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields? Question: I have a Person model that has a foreign key relationship to Book, which has a number of fields, but I’m most concerned about author (a standard CharField). With that being said, in my PersonAdmin model, I’d like to display book.author using list_display: …

Total answers: 15