##// END OF EJS Templates
Strip multiple newlines to one in the post before parsing with bbcode
Strip multiple newlines to one in the post before parsing with bbcode

File last commit:

r690:a8dffe47 1.8-dev
r754:6cc0010d default
Show More
all_tags.py
13 lines | 361 B | text/x-python | PythonLexer
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)