from django.views.generic import ListView, DetailView
from django.conf import settings
from django.utils.translation import get_language
from django.core.urlresolvers import reverse
from django.views.generic import ListView, DetailView
from django.conf import settings
from django.utils.translation import get_language
from django.core.urlresolvers import reverse
- def get_queryset(self, **kwargs):
- return super(CommentDocumentList, self).get_queryset(**kwargs).filter(language_code = get_language())
+ def get_queryset(self):
+ return super(CommentDocumentList, self).get_queryset().filter(language_code=get_language())
def get_context_data(self, **kwargs):
context = super(CommentDocumentList, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs):
context = super(CommentDocumentList, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs):
context = super(CommentDocument, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs):
context = super(CommentDocument, self).get_context_data(**kwargs)