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 trialabou93
14,319 PointsI still don't understand the reasoning for passing in the Model argument in the class? Why is that necessary?
If someone can please explain to me, thanks!
2 Answers
Kenneth Love
Treehouse Guest TeacherSorry, not sure exactly what part you're asking about. Can you show us some code or explain more?
Kenneth Love
Treehouse Guest TeacherModel
comes from peewee
when we do from peewee import *
.
abou93
14,319 Pointsabou93
14,319 Pointswell for example when we have the: class User(Model) You said it is inheriting the parent class Model, I believe. but I'm still confused as to where Model comes from