Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

snippet_detail.html #6

rjharris08 opened this Issue Feb 12, 2011 · 6 comments


None yet
2 participants

Django 1.2.4 found errors in snippet_detail.html. Two occurences of request.user in snippet_detail.html had to be replaced with user.

{% if object|is_bookmarked:request.user %}

{% with object|rating_score:request.user as rating_score %}

had to be changed to

{% if object|is_bookmarked:user %}

{% with object|rating_score:user as rating_score %}


coleifer commented Feb 13, 2011

Are you running with the request context processor?

Hmm...well, I don't see it in my project settings.py. Isn't it on by default?


coleifer commented Feb 14, 2011

you can try running:

from django.conf import settings

Here's what I get. Is one of these the request context processor? If not, how would I add it?

>>> settings.TEMPLATE_CONTEXT_PROCESSORS ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.contrib.messages.context_processors.messages')


coleifer commented Feb 20, 2011


added the following to the project's settings.py


It now works as originally written! YTG

@zerok zerok added a commit that referenced this issue Sep 21, 2014

@zerok zerok Merge pull request #6 from zerok/feature/unrate
Allow users to remove their own votes.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment