Anonymous user
Django for ISchoolers: Difference between revisions
→Add Answers
imported>Aldeka |
imported>Aldeka |
||
Line 650:
</source>
===Add
Observe: there is a Question in the database, but it has no Answers! Let's fix that.
Line 687:
<source lang="python">
>>> koan = Answer(text="Is this even an answer")
>>> koan.question_id
>>> koan.question
|