views: automatically redirect after diplaying a success message (#54172)
This commit is contained in:
parent
c0e722fe12
commit
16132509a4
|
@ -1436,7 +1436,7 @@ class DisplayMessageAndContinueView(TemplateView):
|
||||||
return utils.redirect(request, self.url, resolve=False)
|
return utils.redirect(request, self.url, resolve=False)
|
||||||
|
|
||||||
for message in storage:
|
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
|
# If there are warning or error messages, the intermediate page must not redirect
|
||||||
# automatically but should ask for an user confirmation
|
# automatically but should ask for an user confirmation
|
||||||
self.only_info = False
|
self.only_info = False
|
||||||
|
|
Loading…
Reference in New Issue