From e22c0455ba92f5cc5e4ffd216eb8b9f7b010c7f9 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 10 Jan 2024 17:01:27 +0000 Subject: [PATCH] update data type str representation to say what area type mostly useful in the admin interface --- hub/models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hub/models.py b/hub/models.py index 59d2feb94..c42133148 100644 --- a/hub/models.py +++ b/hub/models.py @@ -430,10 +430,14 @@ class DataType(TypeMixin, ShaderMixin, models.Model): ) def __str__(self): + name = self.name if self.label: - return self.label + name = self.label - return self.name + if self.area_type: + return f"{name} ({self.area_type})" + + return name def update_average(self): average = (