Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RenderCommentListNode.render for Django 1.8 #69

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Fix RenderCommentListNode.render for Django 1.8 #69

merged 1 commit into from
Oct 1, 2015

Conversation

yrcjaya
Copy link
Contributor

@yrcjaya yrcjaya commented Aug 19, 2015

Fix #68 compatibility for newer get_queryset function.

@yrcjaya yrcjaya changed the title Fix RenderCommentListNode.render for Django 1.8 #68 Fix RenderCommentListNode.render for Django 1.8 Aug 26, 2015
@@ -248,7 +249,11 @@ def render(self, context):
"comments/%s/list.html" % ctype.app_label,
"comments/list.html"
]
qs = self.get_query_set(context)
# For newer Django (1.6) versions
if django.VERSION > (1,5):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use >= (1,6) because this would also be true: (1,5,5) > (1,5)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed this myself in e68aed5

vdboor added a commit that referenced this pull request Oct 1, 2015
Fix RenderCommentListNode.render for Django 1.8
@vdboor vdboor merged commit 1bb7538 into honzakral:master Oct 1, 2015
vdboor added a commit that referenced this pull request Oct 1, 2015
@yrcjaya
Copy link
Contributor Author

yrcjaya commented Oct 2, 2015

thanks @vdboor did not notice the notification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants