Skip to content

Commit 37e00fd

Browse files
committed
Fix __repr__ method and add __str__
1 parent 8f368c7 commit 37e00fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/grandchallenge/components/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,9 @@ def dicom_upload_with_name(self):
22632263
return self._dicom_upload_with_name
22642264

22652265
def __repr__(self):
2266+
return f"CIVData(interface_slug={self._interface_slug!r}, value={self._initial_value!r})"
2267+
2268+
def __str__(self):
22662269
return f"CIVData: {self.__dict__}"
22672270

22682271
def __init__(self, *, interface_slug, value):

0 commit comments

Comments
 (0)