You might also need a serialization method in the model for getting all values of the table in the format of ex. a dictionary. A serialization method can look like this:
It's good practice to call the serialization method s(), that way you can also utilize the built-in function.