This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-20 15:57:00 +02:00
parent 98433be365
commit f2b7ad63ca

View file

@ -16,6 +16,7 @@ class FeedbackCreate(LoginRequiredMixin, CampViewMixin, CreateView):
def form_valid(self, form):
feedback = form.save(commit=False)
feedback.user = self.request.user
feedback.camp = self.camp
feedback.save()
thanks_message = "Thank you! Your feedback is highly appreciated!"
try: