diff --git a/standards/__pycache__/views.cpython-38.pyc b/standards/__pycache__/views.cpython-38.pyc index b231167..44ec7e8 100644 Binary files a/standards/__pycache__/views.cpython-38.pyc and b/standards/__pycache__/views.cpython-38.pyc differ diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index 778fcc2..5ec02c8 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -14,7 +14,7 @@
{% 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']