Hynek Cernoch  committed 8482fab

Updated to use new message framework, closes #23
Thanks to lukestodola

  • Participants
  • Parent commits 3faf76f

Comments (0)

Files changed (1)

File livesettings/

 from django.shortcuts import render_to_response
 from django.template import RequestContext
 from django.contrib.auth.decorators import permission_required
+from django.contrib import messages
 from django.views.decorators.cache import never_cache
 from livesettings import ConfigurationSettings, forms
 from livesettings.overrides import get_overrides
                     if cfg.update(value):
                         # Give user feedback as to which settings were changed
-                        request.user.message_set.create(message='Updated %s on %s' % (cfg.key,
+                        messages.add_message(request, messages.INFO, 'Updated %s on %s' % (cfg.key,
                 return HttpResponseRedirect(request.path)