Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Hint to __unicode__ exercise for reader #116

Open
riseriyo opened this issue Jul 2, 2014 · 2 comments
Open

Add a Hint to __unicode__ exercise for reader #116

riseriyo opened this issue Jul 2, 2014 · 2 comments

Comments

@riseriyo
Copy link
Contributor

riseriyo commented Jul 2, 2014

Suggestion: Add a Hint for the reader:

e.g.,
"When writing your unicode method for your Comment model, make sure you know what you are returning as a value. If you are not sure, take a look at our test, test_unicode_representation, again and see what it is asserting."

@treyhunner
Copy link
Member

@riseriyo where should note be added? In the __str__ test in part 2 or in part 3

@riseriyo
Copy link
Contributor Author

@treyhunner In part 3, we ask the reader to do an exercise. And yes, it seems we are now using __str__ instead of __unicode__ so it's referring to the test, test_string_representation in the CommentModelTest. I'm not sure if this hint is needed anymore. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants