views: automatically redirect after diplaying a success message (#54172)

This commit is contained in:
Paul Marillonnet 2021-05-20 17:52:24 +02:00
parent c0e722fe12
commit 16132509a4
1 changed files with 1 additions and 1 deletions

View File

@ -1436,7 +1436,7 @@ class DisplayMessageAndContinueView(TemplateView):
return utils.redirect(request, self.url, resolve=False)
for message in storage:
if message.level != messages.INFO:
if message.level not in (messages.INFO, messages.SUCCESS):
# If there are warning or error messages, the intermediate page must not redirect
# automatically but should ask for an user confirmation
self.only_info = False