feedback/views.py
changeset 56 3858a9d0f376
parent 55 53ff84c9192d
child 62 b7e47cc39342
equal deleted inserted replaced
55:53ff84c9192d 56:3858a9d0f376
    43             new_feedback.problems = data['problems']
    43             new_feedback.problems = data['problems']
    44             new_feedback.exercises = data['exercises']
    44             new_feedback.exercises = data['exercises']
    45             new_feedback.comments = data['comments']
    45             new_feedback.comments = data['comments']
    46             new_feedback.save()
    46             new_feedback.save()
    47         
    47         
    48             event.feedback_submitted_by.add(user)
    48             FeedLog(user=user, event=event, day=event.feedback_status).save()
    49             event.save()
       
    50 
    49 
    51             return render_to_response('feedback.html', {'user':user, 'submitted':True, 'event':event})
    50             return render_to_response('feedback.html', {'user':user, 'submitted':True, 'event':event})
    52         else:
    51         else:
    53             return render_to_response('feedback.html',{'user':user, 'form':form, 'event':event})
    52             return render_to_response('feedback.html',{'user':user, 'form':form, 'event':event})
    54     else:
    53     else: