diff --git a/boards/templates/boards/authors.html b/boards/templates/boards/authors.html --- a/boards/templates/boards/authors.html +++ b/boards/templates/boards/authors.html @@ -15,6 +15,7 @@

{% blocktrans count count=post_count %}{{ count }} message{% plural %}messages{% endblocktrans %}.

{% trans 'Messages per day/week/month:' %} {{ post_per_day }}/{{ post_per_week }}/{{ post_per_month }}

{{ platform }}

+

Python {{ python }}

{% trans 'Authors' %}

{% for nick, values in authors.items %}

diff --git a/boards/views/authors.py b/boards/views/authors.py --- a/boards/views/authors.py +++ b/boards/views/authors.py @@ -1,5 +1,6 @@ import os import platform +import sys from django.shortcuts import render from django.utils.decorators import method_decorator @@ -19,6 +20,7 @@ PARAM_POST_PER_DAY = 'post_per_day' PARAM_POST_PER_WEEK = 'post_per_week' PARAM_POST_PER_MONTH = 'post_per_month' PARAM_PLATFORM = 'platform' +PARAM_PYTHON = 'python' class AuthorsView(BaseBoardView): @@ -30,6 +32,9 @@ class AuthorsView(BaseBoardView): params[PARAM_POST_COUNT] = Post.objects.count() params[PARAM_PLATFORM] = platform.platform() + python_version = sys.version_info + params[PARAM_PYTHON] = '{}.{}.{}'.format(python_version.major, + python_version.minor, python_version.micro) params[PARAM_POST_PER_DAY] = Post.objects.get_post_per_days(1) params[PARAM_POST_PER_WEEK] = Post.objects.get_post_per_days(7)