Commits

Luke Plant  committed f45846e

Send a message when account details have been entered

  • Participants
  • Parent commits a019b82
  • Branches bookings

Comments (0)

Files changed (1)

File cciw/bookings/views.py

     def get_object(self):
         return self.request.booking_account
 
+    def form_valid(self, form):
+        messages.info(self.request, 'Account details updated, thank you.')
+        return super(BookingAccountDetails, self).form_valid(form)
+
 
 class BookingEditAddBase(DefaultMetaData, TemplateResponseMixin, AjaxyFormMixin):
     template_name = 'cciw/bookings/add_place.html'