Guest User

Untitled

a guest
Apr 2nd, 2019
9
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # views.py
  2.  
  3. from django.shortcuts import render
  4. from .models import Leaderboard
  5. from django.views.generic import ListView
  6.  
  7.  
  8. class LeaderboardsList(ListView):
  9.     template_name = "leaderboard/index.html"
  10.     context_object_name = "leaderboards_list"
  11.     queryset = Leaderboard.objects.order_by("-date_published")
RAW Paste Data