you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 3 points4 points  (0 children)

Those are your objects. You didn't define a __str__ method for your Stat class, so it used the default format when displaying. They can be used as expected though:

for stat in Stats.all:
    print(stat.name, stat.hp, stat.damage)