##// END OF EJS Templates
Make status an error if the user is banned in api_add_post
Make status an error if the user is banned in api_add_post

File last commit:

r579:7bbdf3d0 default
r638:e9babb2a default
Show More
archived_threads.py
17 lines | 422 B | text/x-python | PythonLexer
/ boards / views / archived_threads.py
neko259
Rewriting views to class-based
r542 from boards.models import Thread
from boards.views.all_threads import AllThreadsView
__author__ = 'neko259'
class ArchiveView(AllThreadsView):
def get_threads(self):
neko259
Minor fix to the archive
r549 return Thread.objects.filter(archived=True).order_by('-bump_time')
neko259
Fixed pagination in the archive
r579
def get_context_data(self, **kwargs):
context = super(ArchiveView, self).get_context_data(**kwargs)
context['archived'] = True
return context