##// END OF EJS Templates
Moved post image to a separate model. Each post (as of model) can contain multiple images now. The image shown to the user is got with get_first_image method
Moved post image to a separate model. Each post (as of model) can contain multiple images now. The image shown to the user is got with get_first_image method

File last commit:

r690:a8dffe47 1.8-dev
r693:641dff39 1.8-dev
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)