Skip to content

Commit 6c17202

Browse files
committed
better repr/str for skill component
1 parent 9cf54e8 commit 6c17202

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ishar/apps/skills/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ def __repr__(self):
243243
)
244244

245245
def __str__(self):
246-
return f"{self.component_type} : {self.component_value} @ {self.skill}"
246+
return (
247+
f"{self.skill} / {self.get_component_type_display()}: "
248+
f"{self.component_value}"
249+
)
247250

248251

249252
class SkillForce(models.Model):

0 commit comments

Comments
 (0)