##// END OF EJS Templates
Small refactoring of threads view
Small refactoring of threads view

File last commit:

r918:06775760 default
r1374:e531c1da default
Show More
authors.py
13 lines | 304 B | text/x-python | PythonLexer
neko259
Added missing all_tags module. Moved authors view to class-based
r551 from django.shortcuts import render
from boards.authors import authors
from boards.views.base import BaseBoardView
neko259
Minor style fixes to view classes. Fixed ban view
r561
neko259
Added missing all_tags module. Moved authors view to class-based
r551 class AuthorsView(BaseBoardView):
def get(self, request):
neko259
Fixed calls to render shortcut to use dict instead of context instance
r918 params = dict()
params['authors'] = authors
neko259
Added missing all_tags module. Moved authors view to class-based
r551
neko259
Fixed calls to render shortcut to use dict instead of context instance
r918 return render(request, 'boards/authors.html', params)