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

后端 未结 12 539
渐次进展
渐次进展 2020-12-12 22:05

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

12条回答
  •  既然无缘
    2020-12-12 22:42

    In your model admin set:

    list_display_links = (None,)
    

    That should do it. (Works in 1.1.1 anyway.)

    Link to docs: list_display_links

提交回复
热议问题