Commit ddf145a2 authored by Daniel W Bond's avatar Daniel W Bond

to back up slightly, listviews do not automatically pluralize the model assigned

parent 4c259ef4
......@@ -28,6 +28,7 @@ from core.models import Student
class ListListings(LoginRequiredMixin, ListView):
model = Listing
context_object_name = 'listings'
paginate_by = 16
queryset = Listing.objects.exclude(cancelled=True).order_by('-created')
template_name = 'list_listings.html'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment