super().analyse()
self.ctx['tags'] = analyse_tags(self.request, self.kwargs['tags'])
+ if len(self.ctx['tags']) > 4:
+ raise Http404
self.ctx.update({
'fragment_tags': [],
'work_tags': [],
]
if len(self.ctx['tags']) == 1 and self.ctx['main_tag'] is not None and self.ctx['main_tag'].category == 'author':
self.ctx['translation_list'] = self.ctx['main_tag'].book_set.all()
+ self.ctx['narrated'] = self.ctx['main_tag'].narrated.all()
def get_queryset(self):
if self.ctx['work_tags']: