From 351765822bc7a84c96c4a26d9936f319948a2f2e Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 6 Mar 2014 16:57:17 +0530 Subject: default reviewer set for all submission. default reviewer is the one with id=1. --- tbc/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tbc/views.py') diff --git a/tbc/views.py b/tbc/views.py index ba13a21..d2ff195 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -186,6 +186,7 @@ def SubmitBook(request): data = form.save(commit=False) profile = Profile.objects.get(user=request.user.id) data.contributor = profile + data.reviewer = Reviewer.objects.get(pk=1) data.save() context['user'] = curr_user curr_book = Book.objects.order_by("-id")[0] -- cgit