change str model resourcedata

This commit is contained in:
Jorge Pastor 2023-12-30 10:00:54 +01:00
parent b782269b12
commit e2dd8a90ae
1 changed files with 3 additions and 1 deletions

View File

@ -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):