> I know from the tutorial that the statement is to get all of the > records in the book table. > What I don't know is where I find the syntax for all coding such as > find the certain author and get all the books written by the author. > > I thought that it is not python but some abbreviation of python.
The .all() method returns a QuerySet[1] object. You can also use book.object.filter(title="One Fish, Two Fish") book.object.exclude(title="Green Eggs & Ham") which also return a QuerySet objects, so they can be chained: book.object.filter(author="Seuss").exclude(title="Green Eggs & Ham") Reading the linked page should give you an abundance of examples on how to use these QS objects. -tim [1] http://docs.djangoproject.com/en/dev/ref/models/querysets/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

