mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
Use 'Your preferences have been updated.' as notification preference success message
This matches the confirmation for language preference, and fits Wagtail 'house style' better
This commit is contained in:
parent
be73eac8cf
commit
ea746ee74f
@ -95,7 +95,7 @@ def notification_preferences(request):
|
|||||||
|
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
form.save()
|
form.save()
|
||||||
messages.success(request, _("Your preferences have been updated successfully!"))
|
messages.success(request, _("Your preferences have been updated."))
|
||||||
return redirect('wagtailadmin_account')
|
return redirect('wagtailadmin_account')
|
||||||
else:
|
else:
|
||||||
form = NotificationPreferencesForm(instance=UserProfile.get_for_user(request.user))
|
form = NotificationPreferencesForm(instance=UserProfile.get_for_user(request.user))
|
||||||
|
Loading…
Reference in New Issue
Block a user