diff --git a/compensation/templates/compensation/detail/compensation/view.html b/compensation/templates/compensation/detail/compensation/view.html index b40fc2f4..26800a83 100644 --- a/compensation/templates/compensation/detail/compensation/view.html +++ b/compensation/templates/compensation/detail/compensation/view.html @@ -130,7 +130,7 @@ {% else %} {% fa5_icon 'eye-slash' %} - {{obj.users.count}} {% trans 'other users' %} + {{obj.intervention.users.count}} {% trans 'other users' %} {% endif %} diff --git a/intervention/utils/egon_export.py b/intervention/utils/egon_export.py index 2589595f..653a630a 100644 --- a/intervention/utils/egon_export.py +++ b/intervention/utils/egon_export.py @@ -152,7 +152,7 @@ class EgonGmlBuilder: "oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT), "oneo:bemerkung": doc.comment, "oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"), - "oneo:dateiname": doc.title, + "oneo:dateiname": doc.file.url.split("/")[-1], "oneo:hauptfoto": False, } } for doc in regular_docs