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