def claims_statistic(context): context['claims'] = Claims.statistic() return context
def context_processor(request): return { 'user': request.user, 'debug': settings.DEBUG, 'claims': Claims.statistic(), }