##// END OF EJS Templates
Use aggregation to get the thread images count
Use aggregation to get the thread images count

File last commit:

r872:752c0b44 default
r891:72a58333 default
Show More
authors.py
14 lines | 385 B | text/x-python | PythonLexer
from django.shortcuts import render
from boards.authors import authors
from boards.views.base import BaseBoardView
class AuthorsView(BaseBoardView):
def get(self, request):
context = self.get_context_data(request=request)
context['authors'] = authors
# TODO Use dict here
return render(request, 'boards/authors.html', context_instance=context)