Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialShana HT
3,292 Pointswhat kind of variable is student_record?
I try to run this code exactly as it is in the lesson, on my own, in pycharm, and get this error
students.py", line 30, in add_students student_record.save() AttributeError: 'int' object has no attribute 'save'
2 Answers
Ryan S
27,276 PointsHi Shana,
Can you post your code? It is difficult to debug without seeing it. If you were following along in the video chances are it's typo of some kind. You would've had to have defined "student_record" somewhere before calling it's .save() function. Maybe find that line and check for any typos.
Shana HT
3,292 Pointsyes it was just a typo, sorry ... should have took more time on it
Ryan S
27,276 PointsHey no worries. Glad you got it figured out.