##// END OF EJS Templates
Use shared workers for favorites update script
Use shared workers for favorites update script

File last commit:

r1254:6b9c7236 default
r1463:437271ff default
Show More
all_tags.py
23 lines | 610 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
neko259
Implemented search over posts. Moved get_user and get_theme to utils module. Use context processors instead of creating context in the base view. Removed unused imports in some modules
r690
neko259
Required tags are now called sections and split up in the all tags list
r1254 PARAM_SECTION_TAGS = 'section_tags'
neko259
Show only required tags in all tags list by default
r1069 PARAM_TAGS = 'all_tags'
PARAM_QUERY = 'query'
neko259
Added missing all_tags module. Moved authors view to class-based
r551 class AllTagsView(BaseBoardView):
neko259
Show only required tags in all tags list by default
r1069 def get(self, request, query=None):
neko259
Fixed calls to render shortcut to use dict instead of context instance
r918 params = dict()
neko259
Added missing all_tags module. Moved authors view to class-based
r551
neko259
Required tags are now called sections and split up in the all tags list
r1254 params[PARAM_SECTION_TAGS] = Tag.objects.filter(required=True)
if query != 'required':
params[PARAM_TAGS] = Tag.objects.get_not_empty_tags().filter(
required=False)
neko259
Show only required tags in all tags list by default
r1069 params[PARAM_QUERY] = query
neko259
Fixed calls to render shortcut to use dict instead of context instance
r918
return render(request, 'boards/tags.html', params)