This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-20 15:39:08 +02:00
parent 2d58695ee4
commit 0aa198ba6c

View file

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