Thanks Danny, indeed, the problem was in these confusing names. The problem was here: Class Episode > s = season The fix: s = season.number -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20140921/b4f30b26/attachment.html>