allow_tags=True does not render <form> tag in django admin

后端 未结 3 1585
抹茶落季
抹茶落季 2021-01-14 12:21

I want to display a form in the list_display in django admin, but I\'m facing this problem:

when I define something like this:

class MyModelAdmin(adm         


        
3条回答
  •  醉话见心
    2021-01-14 12:35

    Ok, so the problem here is that list_display is inside an html form, so I was trying to display a form inside a form, that is a bad idea... and below explains why

    Can you nest html forms?

    Hope it helps.

提交回复
热议问题