diff --git a/taskapp/locale/ru/LC_MESSAGES/django.po b/taskapp/locale/ru/LC_MESSAGES/django.po index 5ecd465..23dd5c5 100644 --- a/taskapp/locale/ru/LC_MESSAGES/django.po +++ b/taskapp/locale/ru/LC_MESSAGES/django.po @@ -453,3 +453,6 @@ msgstr "с. %s. Тип задачи - %s. " msgid "Recipients" msgstr "Исполнители" + +msgid "Author does not specified" +msgstr "Автор не указан" diff --git a/taskapp/templates/taskapp/tasklist_finish.html b/taskapp/templates/taskapp/tasklist_finish.html index 06153de..68878ec 100644 --- a/taskapp/templates/taskapp/tasklist_finish.html +++ b/taskapp/templates/taskapp/tasklist_finish.html @@ -53,9 +53,13 @@ {{ task.get_mode_display }} {{ task.descr }} + {% if task.author %} {{ task.author.username }} + {% else %} + {% trans 'Author does not specified' %} + {% endif %} {{ task.time_of_create|date:'d E H:i' }} diff --git a/taskapp/views.py b/taskapp/views.py index a474824..3e184c3 100644 --- a/taskapp/views.py +++ b/taskapp/views.py @@ -147,7 +147,7 @@ class TaskUpdateView(UpdateView): log_text = _('Task has changed successfully') messages.add_message(self.request, messages.SUCCESS, log_text) except MultipleException as e: - for err in e: + for err in e.err_list: messages.add_message(self.request, messages.WARNING, err) except TaskException as e: messages.add_message(self.request, messages.ERROR, e)