##// END OF EJS Templates
Using opening post ID from cache, not passing it to the post view
Using opening post ID from cache, not passing it to the post view

File last commit:

r577:a519da78 default
r621:59a1deab default
Show More
static.py
13 lines | 379 B | text/x-python | PythonLexer
neko259
Moved static page view to the class-based. Removed old methods from the view...
r565 from django.shortcuts import render
from boards.views.base import BaseBoardView
class StaticPageView(BaseBoardView):
neko259
Staticpage view fix
r577 def get(self, request, name):
neko259
Moved static page view to the class-based. Removed old methods from the view...
r565 """
Show a static page that needs only tags list and a CSS
"""
context = self.get_context_data(request=request)
return render(request, 'boards/staticpages/' + name + '.html', context)