From e2dd8a90aef4870bda2771b6036a69e0103af2f0 Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Sat, 30 Dec 2023 10:00:54 +0100 Subject: [PATCH] change str model resourcedata --- orchestra/contrib/resources/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orchestra/contrib/resources/models.py b/orchestra/contrib/resources/models.py index 7b1e0ff9..f4491ab6 100644 --- a/orchestra/contrib/resources/models.py +++ b/orchestra/contrib/resources/models.py @@ -198,8 +198,10 @@ class ResourceData(models.Model): ('content_type', 'object_id'), ) + # def __str__(self): + # return "%s: %s" % (self.resource, self.content_object) def __str__(self): - return "%s: %s" % (self.resource, self.content_object) + return "%s" % (self.content_object) @property def unit(self):