dbbase.DB.apply_db

DB.apply_db(cls)[source]

This function receives a Model class and applies db and session to the class. This enables model classes to be added if not in the original initialization.

Parameters

cls – (Model) : the Model class having the attributes updated.