##// END OF EJS Templates
Don't store threads list of a tag, cause this data can be got from thread's tags relations
Don't store threads list of a tag, cause this data can be got from thread's tags relations

File last commit:

r872:752c0b44 default
r909:ffe54c08 default
Show More
static.py
17 lines | 449 B | text/x-python | PythonLexer
from django.shortcuts import render
from boards.views.base import BaseBoardView
class StaticPageView(BaseBoardView):
def get(self, request, name):
"""
Show a static page that needs only tags list and a CSS
"""
context = self.get_context_data(request=request)
# TODO Use dict here
return render(request, 'boards/staticpages/' + name + '.html',
context_instance=context)