Luke Plant committed e02bedb

Made use of messages for shelving/unshelving/deleting items in basket

  • Participants
  • Parent commits 4aadb80
  • Branches bookings

Comments (0)

Files changed (1)


 import re
 from django.conf import settings
+from django.contrib import messages
 from django.core.urlresolvers import reverse, reverse_lazy
 from django.http import HttpResponseRedirect, Http404
 from django.views.generic.base import TemplateView, TemplateResponseMixin
         form.instance.agreement_date =
         form.instance.state = BOOKING_INFO_COMPLETE
+, 'Details for "%s" were saved successfully' %
         return super(BookingEditAddBase, self).form_valid(form)
         def shelve(place):
             place.shelved = True
+  , 'Place for "%s" moved to shelf' %
         def unshelve(place):
             place.shelved = False
+  , 'Place for "%s" moved to basket' %
         def delete(place):
+  , 'Place for "%s" deleted' %
         def edit(place):