<reponame>BringTheChill/django-translatable-testimonials<filename>django_translatable_testimonials/views.py
from django.views.generic import ListView
# from hvad.utils import get_translation_aware_manager
from parler.views import TranslatableSlugMixin

from .models import Testimonial


class TestimonialsActiveList(TranslatableSlugMixin, ListView):
    model = Testimonial
    # manager = get_translation_aware_manager(Testimonial)
    queryset = Testimonial.objects.get_queryset().filter(active=True)




from django.views.generic import ListView
# from hvad.utils import get_translation_aware_manager
from parler.views import TranslatableSlugMixin

from .models import Testimonial


class TestimonialsActiveList(TranslatableSlugMixin, ListView):
    model = Testimonial
    # manager = get_translation_aware_manager(Testimonial)
    queryset = Testimonial.objects.get_queryset().filter(active=True)
# from hvad.utils import get_translation_aware_manager # manager = get_translation_aware_manager(Testimonial)