Skip to content

Instantly share code, notes, and snippets.

@gowram
Created October 30, 2014 05:59
Show Gist options
  • Save gowram/b47538346db9711d5041 to your computer and use it in GitHub Desktop.
Save gowram/b47538346db9711d5041 to your computer and use it in GitHub Desktop.
from django.shortcuts import render
from .models import MyQuiz
from parler.views import ViewUrlMixin
from django.views.generic import ListView
from django.template import add_to_builtins
class QuizListView(ViewUrlMixin, ListView):
model = MyQuiz
view_url_name = 'listing'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment