summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/models_imports.py2
-rw-r--r--ishtar_common/templates/ishtar/import_table.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py
index 3683a9d1c..77b98fee1 100644
--- a/ishtar_common/models_imports.py
+++ b/ishtar_common/models_imports.py
@@ -242,7 +242,7 @@ class ImporterType(models.Model):
return (self.slug,)
def __str__(self):
- return self.name
+ return f"{self.name} ({IMPORT_TYPES_DICT.get(self.type, '-').lower()})"
def clean(self):
if self.type == "qgs" and not self.is_template:
diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html
index 2a9959ffa..b4e501dab 100644
--- a/ishtar_common/templates/ishtar/import_table.html
+++ b/ishtar_common/templates/ishtar/import_table.html
@@ -69,7 +69,7 @@
<li><small><i class="fa fa-fw fa-user" aria-hidden="true"></i>&nbsp; {{import.user}}</small></li>
</ul></td>
<td>
- {{import.importer_type}} ({% if import.importer_type.type_label %}{% trans import.importer_type.type_label %}{% else %}{% trans "Group" %}{% endif %})
+ {{import.importer_type.name}} ({% if import.importer_type.type_label %}{% trans import.importer_type.type_label %}{% else %}{% trans "Group" %}{% endif %})
</td>
<td id="status-{{import.import_id}}">
{{import.status}}