diff options
author | Jayaram Pai | 2013-12-05 21:25:35 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-05 21:25:35 +0530 |
commit | 41e5496301cd02bff34dad877d20b2dd30349866 (patch) | |
tree | 587de041ff2c6820c7b2a9fc0c4ab87a6c2eb63a /website/views.py | |
parent | e0bbd9f308e03d1d4e5b2f1e668b8958c81c039e (diff) | |
download | spoken-tutorial-forums-41e5496301cd02bff34dad877d20b2dd30349866.tar.gz spoken-tutorial-forums-41e5496301cd02bff34dad877d20b2dd30349866.tar.bz2 spoken-tutorial-forums-41e5496301cd02bff34dad877d20b2dd30349866.zip |
something works :)
Diffstat (limited to 'website/views.py')
-rw-r--r-- | website/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/website/views.py b/website/views.py index d8c4012..29c6a76 100644 --- a/website/views.py +++ b/website/views.py @@ -29,7 +29,8 @@ categories = [ def home(request): questions = Question.objects.all().order_by('date_created').reverse()[:10] context = { - 'questions': questions + 'questions': questions, + 'user': request.user } return render_to_response('website/templates/index.html', context) |