The class methods
The instance methods
Let's look at these in turn.
Listing(title="Civic 1995 for Sale")
What can you pass to the constructor? Basically, all the properties that you declared on the
model itself can be supplied as keyword arguments for initial values while creating the instance. Besides this, the following can be supplied:
ID: This is either an integer or a string that you wish to use as an identifier instead of the autogenerated one using the
idkeyword argument. If an ID is provided, then the key cannot be specified. We have used it in some of our examples.