##// END OF EJS Templates
Optimized imports and added some docstrings to the post module
Optimized imports and added some docstrings to the post module

File last commit:

r551:37f54a4a 1.7-dev
r622:d08e30ea default
Show More
all_tags.py
12 lines | 360 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.views.base import BaseBoardView
from boards.models.tag import Tag
class AllTagsView(BaseBoardView):
def get(self, request):
context = self.get_context_data(request=request)
context['all_tags'] = Tag.objects.get_not_empty_tags()
return render(request, 'boards/tags.html', context)