From e965cd623e85456335e42c41b9811f2a70f57e27 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Thu, 5 Dec 2019 14:11:48 +0100 Subject: [PATCH] Standardanzeige angepasst --- standards/__pycache__/views.cpython-38.pyc | Bin 4752 -> 4785 bytes .../standards/standards_management.html | 2 +- .../templates/standards/standards_single.html | 11 ++++++++++- standards/views.py | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/standards/__pycache__/views.cpython-38.pyc b/standards/__pycache__/views.cpython-38.pyc index b231167dd25b79237d814067aa85977199618616..44ec7e82031aa48ca6af346d5522e6ba4832c963 100644 GIT binary patch delta 404 zcmX|+K}!Nr5P;w8y6fWZy6a|{5@83m4napR6=-QBcI%c(wFR1KYztksD5#r(G892X zZl~%d_7nOI9fVF@g6`$9_ZDg%^YJ}q=JBST=q1#3RSggtb8nxeo1XgP)6+nRLu$l? zJ+2Lwgocm|Qi(gz6qZ=6`W@dbF{L}+<$&1ZI22|fib?SmV)!MVO;{27(*fUT9u4&R=Am8L zZ<^KJ>W*1yHn8sRBo^2zoB}%NTo@FP{*U;73t(KDgnWNddg2r-O9!kahGhgf1v#9N zPoRX4@&^>Kr4-=;2g(7gVnKa|4t}eb(8BZJ6|7)PJB=0CXptevu*Q&P$l;5Yg=-vY k+q88<&(P=Y^?7*czw23mJWd(q&@=~u6iv|xP|6(q0<8UBzW@LL delta 336 zcmdm}Izg2;l$V!_0SJ0`zlcrU$orjzPlJ(xp@t!gA%!uUsp!XK5mq&>qHi^f3s@I2 z6n&fQ!5SA)!;O^E0|k_TsK%jG26r`!S>E z
{% for item in standards_of_agency %} -
+

{{item.name}}

diff --git a/standards/templates/standards/standards_single.html b/standards/templates/standards/standards_single.html index 067b061..f811221 100644 --- a/standards/templates/standards/standards_single.html +++ b/standards/templates/standards/standards_single.html @@ -1,8 +1,17 @@ {% extends "users/base.html" %} {% block content %}
+ + + Erstellt durch {{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}} am {{standard.created_standard_date}} | Zuletzt bearbeitet von {{ standard.last_modified_by.first_name}} {{ standard.last_modified_by.last_name}} am {{ standard.last_modified_on}} +
{{standard.media}} {{standard.content|safe}}
- {% endblock content %} diff --git a/standards/views.py b/standards/views.py index d5cfefe..631ecb4 100644 --- a/standards/views.py +++ b/standards/views.py @@ -67,6 +67,7 @@ def StandardAdd(request): new_standard.created_standard_by = request.user new_standard.published_by = request.user new_standard.last_modified_by = request.user + new_standard.last_modified_on = datetime.now() new_standard.task = normalForm.cleaned_data['task'] new_standard.area = normalForm.cleaned_data['area'] new_standard.name = normalForm.cleaned_data['name']