summaryrefslogtreecommitdiffstats
path: root/hyperkitty/views/accounts.py
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/views/accounts.py')
-rw-r--r--hyperkitty/views/accounts.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/hyperkitty/views/accounts.py b/hyperkitty/views/accounts.py
index 284eb15..70d7109 100644
--- a/hyperkitty/views/accounts.py
+++ b/hyperkitty/views/accounts.py
@@ -35,17 +35,12 @@ from social_auth.backends import SocialAuthBackend
from hyperkitty.models import UserProfile, Rating, Favorite
from hyperkitty.views.forms import RegistrationForm, UserProfileForm
-from hyperkitty.lib import get_store
+from hyperkitty.lib import get_store, FLASH_MESSAGES
logger = logging.getLogger(__name__)
-FLASH_MESSAGES = {
- "updated-ok": "The profile was successfully updated.",
-}
-
-
def login_view(request, *args, **kwargs):
if "extra_context" not in kwargs:
kwargs["extra_context"] = {}
@@ -120,7 +115,8 @@ def user_profile(request, user_email=None):
flash_messages = []
flash_msg = request.GET.get("msg")
if flash_msg:
- flash_msg = { "type": "success", "msg": FLASH_MESSAGES[flash_msg] }
+ flash_msg = { "type": FLASH_MESSAGES[flash_msg][0],
+ "msg": FLASH_MESSAGES[flash_msg][1] }
flash_messages.append(flash_msg)
context = {