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 trial

Python

Chris Grazioli
Chris Grazioli
31,225 Points

Confused on Tacocat Challenge. Its wants a User and a Taco which will have a user. Who extends who?

In Models.py you will need a User and create_user method as well a a Taco and create_taco method, I understand this. The readme also states that the taco will have a user. So I'm a little confused as to which class/object extends the other. Does a taco have a user or is it a User has a taco(s)? what does that look like?

1 Answer

Steven Parker
Steven Parker
231,007 Points

:point_right: A class can contain an instance of another class without extending it.

It sounds like that's what's happening in this case, but I could be more certain and specific if you were to provide a link to the course page.