0
0
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:
Matt Westcott 2017-04-25 12:32:42 +01:00
parent be73eac8cf
commit ea746ee74f

View File

@ -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))