Django: customizing the message after a successful form save

前端 未结 2 1639
深忆病人
深忆病人 2021-01-18 20:36

whenever I save a model in my Admin interface, it displays the usual \"successfully saved message.\" However, I want to know if it\'s possible to customize this message bec

2条回答
  •  余生分开走
    2021-01-18 21:01

    If you're using Django 1.2 or newer, the messages framework may hold the answer.

    http://docs.djangoproject.com/en/dev/ref/contrib/messages/

提交回复
热议问题