There is this line in the Django tutorial, Writing your first Django app, part 1:
p.choice_set.create(choice='Not much', votes=0)
How is choice_set
called into existence and what is it?
I suppose the choice
part is the lowercase version of the model Choice
used in the tutorial, but what is choice_set
? Can you elaborate?
Update 1: based on Ben James' answer I located a place in the documentation where it is described: Following relationships "backward".