📜  在字段中自定义 django admin 编辑模型按钮 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:05.179000             🧑  作者: Mango

代码示例1
#Add the necessary model to the admin page 
# in question and it will be done automaticallly:
  
@admin.register(Trip) # Original model in Django admin
@admin.register(User) # Additional model that allows its data to be created in tandem with the first model.